-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to compile: You may need an additional loader to handle the result of these loaders. #5
Comments
I have same issue, make a dist with older syntax please |
I have same issue too.
|
For projects bootstraped with CRA (Create React App), and don't want to eject, do these steps:
// craco.config.js
module.exports = {
webpack: {
configure: {
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto"
}
]
}
}
},
babel: {
plugins: ['@babel/plugin-proposal-nullish-coalescing-operator'],
presets: ['@babel/preset-env']
},
// more options
} |
Hello, I'm a novice in react, and I encounter this error.
How can I solve this or what I am missing.
./node_modules/react-use-pagination/dist-module/react-use-pagination.mjs 52:85
Module parse failed: Unexpected token (52:85)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
|
| case "SET_PAGESIZE":
|
| case "SET_TOTALITEMS":
The text was updated successfully, but these errors were encountered: