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

I have error on nuxt 3.10.0 #311

Open
fenn1ks opened this issue Feb 2, 2024 · 6 comments
Open

I have error on nuxt 3.10.0 #311

fenn1ks opened this issue Feb 2, 2024 · 6 comments

Comments

@fenn1ks
Copy link

fenn1ks commented Feb 2, 2024

please help me with this problem
When building a project in webstorm, the console says:
[10:05:07 AM] ERROR Pre-transform error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

and on the page
500
[vite-node] [plugin:vite:import-analysis] [VITE_ERROR] virtual:nuxt:C:/someadresstoproject/.nuxt/routes.mjs:10:3

8 | redirect: icons_45pageK3BpbB8TSHMeta?.redirect,
9 | component: () => import("C:/someadresstoproject/node_modules/@nuxtjs/svg-sprite/dist/runtime/components/icons-page.vue").then(m => m.default || m)
10 | }
| ^
11 | ]

at virtual:nuxt:C:/someadresstoproject/.nuxt/routes.mjs:10:3

@Zellement
Copy link

Same here, started with some routine maintenance yesterday.

[09:14:01]  ERROR  Pre-transform error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

@Zellement
Copy link

Zellement commented Feb 2, 2024

Seemingly seems to be an issue with this package and Nuxt 3.10.0, @fenn1ks - try using Nuxt 3.9.0

@fenn1ks
Copy link
Author

fenn1ks commented Feb 2, 2024

Seemingly seems to be an issue with this package and Nuxt 3.10.0, @fenn1ks - try using Nuxt 3.9.0

thanks, I'll try it now, but I'd like to use the actual version of Nuxt

@fenn1ks
Copy link
Author

fenn1ks commented Feb 2, 2024

@Zellement This also works on 3.9.3

@fenn1ks fenn1ks changed the title I have error on nuxt 3 I have error on nuxt 3.10.0 Feb 2, 2024
@teleskop150750
Copy link

@fenn1ks

fork

@fenn1ks
Copy link
Author

fenn1ks commented Feb 21, 2024

works on 3.10.2 NUXT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants