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

ERROR Rollup error: Unexpected token (Note that you need plugins to import files that are not JavaScript) #1422

Closed
ktx-drashti opened this issue Aug 8, 2022 · 2 comments · Fixed by #1423

Comments

@ktx-drashti
Copy link

Environment

  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.6-27661960.60656df
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: modules
  • Runtime Modules: nuxt-full-static@0.1.1, @nuxt/content@2.0.1
  • Build Modules: -

Reproduction

Repo - https://stackblitz.com/edit/github-p1mkc1?file=package.json

Describe the bug

@nuxt/content not working with the latest version of nuxt/framework 3.0.0-rc.6-27664440.41d6f37.

The error I am getting is:

ERROR  Rollup error:  Unexpected token (Note that you need plugins to import files that are not JavaScript)
 at error (node_modules/rollup/dist/es/shared/rollup.js:1888:30)
 at Module.error (node_modules/rollup/dist/es/shared/rollup.js:12442:16)
 at Module.tryParse (node_modules/rollup/dist/es/shared/rollup.js:12819:25)
 at Module.setSource (node_modules/rollup/dist/es/shared/rollup.js:12724:24)
 at ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/rollup.js:22166:20)

Reference Issue #6

Additional context

No response

Logs

No response

@ktx-drashti
Copy link
Author

How to use the latest version comment that includes the PR? As the new version is not released yet after the PR is merged.

@farnabaz
Copy link
Member

farnabaz commented Aug 9, 2022

You can find it here https://content.nuxtjs.org/guide/migration/edge-channel

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

Successfully merging a pull request may close this issue.

2 participants