question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Unknown plugin "dynamic-import-node" specified in "base" at 1,

See original GitHub issue
node_modules/babel-core/lib/transformation/file/options/option-manager.js:180
          throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
          ^

ReferenceError: Unknown plugin "dynamic-import-node" specified in "base" at 1, attempted to resolve relative to "/Users/z/project/src/containers"
    at /Users/z/project/src/_server/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/Users/z/project/src/_server/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/z/project/src/_server/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/z/project/src/_server/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at compile (/Users/z/project/src/_server/node_modules/babel-register/lib/node.js:103:45)
    at loader (/Users/z/project/src/_server/node_modules/babel-register/lib/node.js:144:14)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/z/project/src/_server/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

require('babel-register')({ plugins: ["transform-decorators-legacy", "dynamic-import-node"], presets: ['es2015', 'stage-0', 'react'], // ignore: /scss/, extensions: [".es6", ".es", ".jsx", ".js"] }); trying to use this plugin cause i got SyntaxError: Unexpected token import on server side rendering when trying to use webpack dynamic import in my react components

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
ljharbcommented, Oct 8, 2018

v2.2.0 is released, containing this commit which allows it to work on both babel 6 and 7.

0reactions
ljharbcommented, Aug 30, 2018

v7 was released 2 days ago; a PR is welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpacker error related to module babel-plugin-syntax ...
<path_to_my_app>/node_modules/@babel/plugin-syntax-dynamic-import/ is installed. Similar issues reported in SO, but I think I've tried them all.
Read more >
Error Unknown plugin "dynamic-import-node" specified in ...
Error Unknown plugin "dynamic-import-node" specified in "base" at 1,
Read more >
babel-plugin-dynamic-import-node - npm
Start using babel-plugin-dynamic-import-node in your project by running `npm i babel-plugin-dynamic-import-node`.
Read more >
babel-plugin-dynamic-import-node-filter - npm package - Snyk
errorFilter - A RegExp String, to filter some useless error which been trigger by async bundle. { "plugins": [ ["dynamic-import-node", { " ...
Read more >
Babel issue running npm run dev after upgrade to Mix
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', ... deduped │ ├─┬ @babel/plugin-syntax-dynamic-import@7.2.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found