You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been using random-js with webpack/babel without problems for a while but the new version is causing errors in babel for me
ERROR in ./node_modules/random-js/dist/random-js.mjs
Module parse failed: Unexpected token (459:10)
You may need an appropriate loader to handle this file type.
| }
| }
| catch {
| // nothing to do here
| }
@ ./js/controller.js 9:16-36
@ ./js/main.js
Switching back an older version fixes it for me.
So far I've just imported it and new'd it up, otherwise haven't done much else
import { Random } from "random-js";
const random = new Random();
// other, non random related code?
The config part of my webpack.config.js file looks like
Been using random-js with webpack/babel without problems for a while but the new version is causing errors in babel for me
Switching back an older version fixes it for me.
So far I've just imported it and new'd it up, otherwise haven't done much else
The config part of my webpack.config.js file looks like
Let me know if you need any more info!
The text was updated successfully, but these errors were encountered: