Git Product home page Git Product logo

Comments (14)

Yordan-Ramchev avatar Yordan-Ramchev commented on June 10, 2024

@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.

cnese avatar cnese commented on June 10, 2024

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.

Yordan-Ramchev avatar Yordan-Ramchev commented on June 10, 2024

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
Screenshot 2024-04-04 at 20 15 02
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.

cnese avatar cnese commented on June 10, 2024

image
image
Stackblitz.com will not display this warning

from create-vue.

cexbrayat avatar cexbrayat commented on June 10, 2024

Have you tried to delete the node modules directory and run npm install again?

from create-vue.

cnese avatar cnese commented on June 10, 2024

Yes, I have also recreated multiple projects.

from create-vue.

cexbrayat avatar cexbrayat commented on June 10, 2024

And can you see the file mentioned in the warning in your node modules?

from create-vue.

cnese avatar cnese commented on June 10, 2024

You can see the file
image
{
"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.

cexbrayat avatar cexbrayat commented on June 10, 2024

Can you share your project on GitHub? We'll check if we have the same issue

from create-vue.

cnese avatar cnese commented on June 10, 2024

OK,Submitted to GitHub: https://github.com/cnese/vite

from create-vue.

Yordan-Ramchev avatar Yordan-Ramchev commented on June 10, 2024

If we compare tsconfig files:
These are yours, and the files that are generated are different than they are supposed to.
Screenshot 2024-04-05 at 9 47 48

They should look like this:
Screenshot 2024-04-05 at 9 48 55

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.

cnese avatar cnese commented on June 10, 2024

What command did you use to create this project?

from create-vue.

cnese avatar cnese commented on June 10, 2024

image
image

from create-vue.

cexbrayat avatar cexbrayat commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.