-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Typescript error on quasar upgrade. #11173
Comments
@pstaabp It looks like there might be another package that depends on |
Here's my output:
I noticed that in Suggestion: if this is common, perhaps |
Normally, you shouldn't/don't need to add major packages that |
FYI: I did remove vue-router from package.json, removed the node_modules directory and did a |
Your lock file probably got corrupted. So, if you remove vue-router from package.json, delete |
Yes. It was the lock file. Thanks. Maybe detecting some of this in the quasar cli would help. |
Describe the bug
I have a substantial-sized project. I have just run
quasar upgrade -i
and upgraded from 2.1.2 to 2.2.2. Now I'm getting the following error when either doingquasar dev
orquasar build
:This on on the
src/router/index.ts
file.Note: I created a new quasar project with
quasar create
and checked all options (same as my current project). Thesrc/router/index.ts
file is exactly the same.Also, I have removed the
node_modules
file and rebuilt withnpm i
and still have the same error. Sometimes this seems to fix errors like this.Codepen/jsFiddle/Codesandbox (required)
This occurs on an upgrade to an existing project and doesn't cause an error on an MWE.
To Reproduce
Steps to reproduce the behavior:
Again, since this is on an existing project on upgrade, I did:
quasar upgrade -i
.Expected behavior
The web pack to compile without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
Quasar Version:
@quasar/app Version:
Quasar mode:
Tested on:
OS: MacOS 11.6.1
Node: v16.12.0
NPM: v8.1.0
Yarn:
Browsers:
iOS:
Android:
Electron:
The text was updated successfully, but these errors were encountered: