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.

alternative for airbnb/babel-plugin-dynamic-import-node

See original GitHub issue

Feature Request

The problem is that the https://github.com/airbnb/babel-plugin-dynamic-import-node does not work with babel 7

Maybe there are some alternatives to this repo? Or maybe babel 7 will make it compatible ?

Today i tried to remove and install node_modules - and everything become broken - i assume its caused some updates in babel repositories. Because i have versions with caret symbols in babel plugins like here: { "babel-plugin-dynamic-import-node": "^2.0.0", "babel-plugin-react-transform": "^3.0.0", "babel-plugin-syntax-dynamic-import": "^6.18.0", "babel-polyfill": "^6.16.0", "babel-preset-react": "^6.16.0", "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-loader": "^7.1.5", "babel-plugin-transform-runtime": "^6.15.0", "babel-preset-es2015": "^6.16.0", "babel-preset-stage-0": "^6.16.0", "babel-runtime": "^6.11.6", } Also i have server side rendering and on server side this deps "babel-plugin-dynamic-import-node": "^2.0.0", "babel-register": "^6.26.0", "babel-preset-es2015": "^6.24.1" and now i should change every babel to 7 like mentioned in issue here https://github.com/react-bootstrap/react-bootstrap/issues/3231#issuecomment-414090514 but the airbnb/babel-plugin-dynamic-import-node does not work with babel 7 =(

in https://babeljs.io/docs/en/babel-plugin-syntax-dynamic-import/ it says that it cam be used Via Node API - but it does not alternative for airbnb/babel-plugin-dynamic-import-node ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
vikr01commented, Sep 9, 2018

airbnb/babel-plugin-dynamic-import-node#64 will resolve this.

0reactions
againksycommented, Aug 25, 2018

anyone can suggest what changed in v7 - that brokes support for that plugin? where to look for fix and support both v6 and v7 babel?

Read more comments on GitHub >

github_iconTop Results From Across the Web

babel-plugin-dynamic-import-node | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
@ridestore/babel-plugin-dynamic-import-node-sync - npm package ...
Based on project statistics from the GitHub repository for the npm package @ridestore/babel-plugin-dynamic-import-node-sync, we found that it has been starred ?
Read more >
babel-plugin-dynamic-import-node: Docs & Reviews | Openbase
babel -plugin-dynamic-import-node documentation, tutorials, reviews, alternatives, versions, dependencies, community, and more.
Read more >
node_modules/babel-plugin-dynamic-import-node/CHANGELOG ...
v2.3.2 · [Fix] avoid using reserved param name in babel 7 templates · [Dev Deps] update airbnb-js-shims ...
Read more >
babel-plugin-dynamic-import-node - NPM Package Versions - Socket
v2.1.0. [New] add noInterop option (#57); [Docs] Fix typo "correct" -> "correctly" in readme (#55); [Dev Deps] update airbnb-js-shims , babel-eslint ...
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