Comments (14)
@cnese My assumption is that you are trying to run create-vue
with only Typescript option. If that's the case — can you compare package.json
with the one running in stackblitz?
Here is a link — https://stackblitz.com/github/vuejs/create-vue-templates/tree/main/typescript?file=README.md
It's using the build from playground - https://github.com/vuejs/create-vue-templates/tree/5ac3a87a75066171cbfa3e545e7f13428ae459e9/typescript
from create-vue.
Create with npm vue@latest After creating a new project, this warning will appear when starting the project with npm run dev.
from create-vue.
I could not reproduce it.
I am running npm create vue@latest
with these options creates a different version of the packages used in package.json
Here is a list with devDependencies
that are generated (they are different than yours):
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.11.28",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"npm-run-all2": "^6.1.2",
"typescript": "~5.4.0",
"vite": "^5.1.6",
"vue-tsc": "^2.0.6"
}
Tested with node v18.18.1
& v16.20.2
Can you reproduce your issue in https://stackblitz.com/github/vuejs/create-vue-templates/tree/main/typescript?file=env.d.ts
from create-vue.
Stackblitz.com will not display this warning
from create-vue.
Have you tried to delete the node modules directory and run npm install again?
from create-vue.
Yes, I have also recreated multiple projects.
from create-vue.
And can you see the file mentioned in the warning in your node modules?
from create-vue.
You can see the file
{
"extends": "./tsconfig.json",
"compilerOptions": {
"lib": [
// Target ES2020 to align with Vite.
// https://vitejs.dev/config/build-options.html#build-target
// Support for newer versions of language built-ins are
// left for the users to include, because that would require:
// - either the project doesn't need to support older versions of browsers;
// - or the project has properly included the necessary polyfills.
"ES2020",
"DOM",
"DOM.Iterable"
// No `ScriptHost` because Vue 3 dropped support for IE
],
// Set to empty to avoid accidental inclusion of unwanted types
"types": []
}
}
from create-vue.
Can you share your project on GitHub? We'll check if we have the same issue
from create-vue.
OK,Submitted to GitHub: https://github.com/cnese/vite
from create-vue.
If we compare tsconfig files:
These are yours, and the files that are generated are different than they are supposed to.
What command are you running in the terminal, what package manager do you use and what version?
(the scaffold is a lot different from it should be)
from create-vue.
What command did you use to create this project?
from create-vue.
from create-vue.
Ok so you're not using create-vue, you're using create-vite which is a different project. You can open an issue there https://github.com/vitejs/vite/tree/main if you want to.
We recommend that you follow https://github.com/vuejs/create-vue?tab=readme-ov-file#usage to use create-vue
from create-vue.
Related Issues (20)
- create vue project error . TypeError: (0 , import_node_util.parseArgs) is not a function HOT 5
- vue template script buggy HOT 2
- TS2307: Cannot find module '@/components/echarts' or its corresponding type declarations. HOT 8
- Add Issue templates HOT 1
- Add PR template HOT 1
- The e2e tests in the subfolders under e2e/ are being executed by vitest
- ESLint v9 support HOT 2
- Windows 10 bun type error HOT 1
- typescript .vue file include @types/node when include some package HOT 2
- 升级vue3小版本后 切换路由页面空白,控制台报错! HOT 2
- yarn create vue@latest report an error HOT 2
- Update README screenshot HOT 3
- About `tsBuildInfoFile` config HOT 2
- eslint error with vue typescript files HOT 1
- Project scaffolded with create vue / typescript / vue-router does not render page correctly HOT 9
- Support githooks like husky or yorkie HOT 2
- [playground templates] Add devtools-router-pinia HOT 1
- TypeScript based setup not working (no type checking) HOT 2
- Type definitions for import.meta.hot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-vue.