Don't use path.replaceWith() with a source string, use path.replaceWithSourceString()
See original GitHub issueERROR in unknown: Don’t use path.replaceWith()
with a source string, use path.replaceWithSourceString()
Seems to be the result of this change : https://github.com/babel/babili/pull/543/files
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:31 (8 by maintainers)
Top Results From Across the Web
Babel plugin error: Don't use `path.replaceWith()` with a ...
babeljs - Babel plugin error: Don't use `path. replaceWith()` with a source string, use `path. replaceWithSourceString()` - Stack Overflow. ...
Read more >[Solved]-Babel plugin error: Don't use `path.replaceWith ...
Coding example for the question Babel plugin error: Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`-babel.js.
Read more >Babel-plugin-handbook - npm.io
When you have a visitor that has a Identifier() method, you're actually visiting the path instead of the node. This way you are...
Read more >babel-core API
Scope (path, parentScope); function babel-core.traverse.cheap (node, enter) ... if (typeof replacement === "string") { throw new Error("Don't use `path.
Read more >Package Diff: babel-traverse @ 6.5.0-1 .. 6.6.0
"use strict";. @@ -159,15 +160,19 @@. throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");. }.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is this on npm yet? Asking because i still get this error message.
@michaeltrim Can you try replacing
node_modules/babel-plugin-minify-constant-folding/lib/index.js
with this patched version to see if that fixes it?