Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

372
Vistas
nuxt fails with an error not being able to parse source for import analysis

When I attempt to make the server, it throws up a 500 error and the following error is shown in the terminal:

[SSR] Error transforming  virtual:C:/Users/User/Documents/CODING/Ted's/.nuxt/plugins/server.mjs: 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.

I've attempted to run npm cache clean --force I've reinstalled npm numerous times, given Everyone full privs for the dir it is in, ran VSCode as admin, I'm out of ideas.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The problem is most certainly related to those issues:

  • github/nuxt: incompatible with paths with ' in the filename #2192
  • github/nuxt: fix: escape dynamic import paths #4286

This PR addresses issues when using rollup for a project with ' in the path, for example /Users/Daniel's Projects/project/. Although normal imports are escaped correctly, it seems that dynamic imports are treated differently and we need to escape them as well.

Your path C:/Users/User/Documents/CODING/Ted's/ contains a ' and according to the issue this results in that problem.

So the solution to the problem is to get rid of that ' in your path, or wait until a version of nuxt is released that fixes that problem.

given Everyone full privs for the dir it is in, ran VSCode as admin, I'm out of ideas.

That is something you should never do. There are only really rare cases where you probably might need that, and even then you should rethink that multiple times. Running VSCode as admin would allow vscode and all its installed plugins to mess around with a large amount of the system. If you do that you need to fully trust all of those.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda