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

SyntaxError: nuxt/router.js: Support for the experimental syntax 'dynamicImport' isn't currently enabled #6151

Closed
virskor opened this issue Jul 28, 2019 · 1 comment

Comments

@virskor
Copy link

virskor commented Jul 28, 2019

Version

v2.8.1

Reproduction link

https://github.com/virskor/clodraForumFE

Steps to reproduce

yarn install
yarn dev

What is expected ?

after update to 2.8.1, my NuxtJS application occurs problem. it's running well before that.
my NodeJS version is v11.
and i am using yarn.

.barbelrc
{
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
}
}

after adding @babel/plugin-syntax-dynamic-import, problems still exsting.

What is actually happening?

ERROR in ./.nuxt/router.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/virs/clodraForumFE/.nuxt/router.js: Support for the experimental syntax 'dynamicImport' isn't currently enabled (5:40):

3 | import { interopDefault } from './utils'
4 |

5 | const _40f7591f = () => interopDefault(import('../pages/callback.vue' /* webpackChunkName: "pages/callback" /))
| ^
6 | const _1216da14 = () => interopDefault(import('../pages/categories.vue' /
webpackChunkName: "pages/categories" /))
7 | const _26c888f9 = () => interopDefault(import('../pages/categories/index.vue' /
webpackChunkName: "pages/categories/index" */))
8 | const _06a675a1 = () => interopDefault(import('../pages/categories/_id.vue'

This bug report is available on Nuxt community (#c9571)
@ghost ghost added the cmty:bug-report label Jul 28, 2019
@manniL
Copy link
Member

manniL commented Jul 28, 2019

Duplicate of #4839

@manniL manniL marked this as a duplicate of #4839 Jul 28, 2019
@manniL manniL closed this as completed Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants