Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty vanilla-ts project has 4 problems. #13463

Closed
7 tasks done
hezedu opened this issue Jun 8, 2023 · 2 comments
Closed
7 tasks done

Empty vanilla-ts project has 4 problems. #13463

hezedu opened this issue Jun 8, 2023 · 2 comments

Comments

@hezedu
Copy link

hezedu commented Jun 8, 2023

Describe the bug

Just now, I generated a empty vanilla-ts project.

image

Reproduction

https://github.com/hezedu/SomethingBoring/tree/master/vite-issues

Steps to reproduce

npm create vite@latest
chose vanilla and typescript.
npm install.
open the project with VS Code and see the 4 problems.

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 AMD Ryzen 7 4800U with Radeon Graphics
    Memory: 8.32 GB / 15.37 GB
  Binaries:
    Node: 14.21.3 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (111.0.1661.62)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

npm

Logs

(node:14304) UnhandledPromiseRejectionWarning: ReferenceError: performance is not defined
at initTSConfckParseOptions (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:14042:29)
at initTSConfck (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:14033:28)
at esbuildPlugin (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:13850:5)
at resolvePlugins (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:42295:36)
at resolveConfig (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:64242:30)
at async _createServer (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:63274:20)
at async CAC. (file:///D:/git/data-bind-dom/node_modules/vite/dist/node/cli.js:733:24)
(Use node --trace-warnings ... to show where the warning was created)
(node:14304) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of
an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:14304) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that
are not handled will terminate the Node.js process with a non-zero exit code.

Validations

@bluwy
Copy link
Member

bluwy commented Jun 8, 2023

Are you using the latest version of vscode? vscode uses it's bundled TypeScript by default, which may not be typescript v5 as required by the template. You can also configure vscode to use your project's (workspace) typescript version.

@hezedu
Copy link
Author

hezedu commented Jun 8, 2023

Thanks. I think this is vscode verison's problem.
This issue can be close now.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants