Closed mladenp closed 7 years ago
Thanks for the report @mladenp, the pastebin link doesn't seem to be working
I found out, its require statement, like this:
require('../components/css/font-awesome.css');
Great can you get me a sample (failing) file (and command) that will fail and I'll try to get it fixed!
Here's the line it can't handle:
require ('es6-promise').polyfill();
I'm not even sure how we could handle that... 🤔
The solution is basically:
import es6promise from 'es6-promise'
es6Promise.polyfill()
But it's tough fro me to guess the name of the variable.
In the mean time I'll work toward at least a better error message with clear instructions :)
published as + 5to6-codemod@1.1.3
I am getting this error when i try to transform imports from cjs.js
Error: undefined does not match field "value": string | boolean | null | number | RegExp of type Literal
But from 190 files i get that error only of 3 of them, but i can't find any significant difference between those 3 files. Here is one file where it fails: http://pastebin.com/C5K01b7M