We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug React 16 is throwing error while using remark-slate-transformer@0.7.5. Compilation fails with below error.
Can't import the named export '__rest' from non EcmaScript module (only default export is available)
Steps to Reproduce
Expected behavior The project should run without any errors, and the package should be imported successfully.
Additional context Node Version: 14 React Version: 16.13.1
Note: Changing import {__rest} from 'tslib'; to import __rest from 'tslib'; in index.mjs fixes the issue.
import {__rest} from 'tslib';
import __rest from 'tslib';
The text was updated successfully, but these errors were encountered:
I think it would be a problem of CRA with mjs. facebook/create-react-app#10356
Sorry, something went wrong.
Thanks for pointing out. Adding below module rule to webpack.config.js (after ejecting react app), resolves the above problem.
{ test: /\.mjs$/, include: /node_modules/, type: "javascript/auto" }
No branches or pull requests
Describe the bug
React 16 is throwing error while using remark-slate-transformer@0.7.5. Compilation fails with below error.
Steps to Reproduce
Expected behavior
The project should run without any errors, and the package should be imported successfully.
Additional context
Node Version: 14
React Version: 16.13.1
Note:
Changing
import {__rest} from 'tslib';
toimport __rest from 'tslib';
in index.mjs fixes the issue.The text was updated successfully, but these errors were encountered: