Attempted import error: 'en' is not exported from 'make-plural/plurals'.
See original GitHub issueSummary
I’ve opened ticket as we discussed.
I’m Using webpack 4 and all the latest remirror packages:
"remirror": "^1.0.0-next.32",
"@remirror/pm": "^1.0.0-next.32",
"@remirror/i18n": "^1.0.0-next.32",
And I’m getting this error on build:
Attempted import error: 'en' is not exported from 'make-plural/plurals'.
My @ ./src/shared/remirrorProvider.js
file looks exactly like one of your basic examples
import React from 'react';
import { SocialEmojiComponent, SocialProvider } from 'remirror/react/social';
export const Remirror = () => {
return (
<SocialProvider>
<SocialEmojiComponent />
</SocialProvider>
);
};
Expected results
Build pass.
Actual results
Creating an optimized production build...
(node:56701) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
^[Failed to compile.
./node_modules/@remirror/i18n/dist/i18n.browser.esm.js
Attempted import error: 'en' is not exported from 'make-plural/plurals'.
@ ./node_modules/@remirror/react/dist/react.browser.esm.js
@ ./node_modules/remirror/react/dist/remirror.browser.esm.js
@ ./src/shared/remirrorProvider.js
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Attempted import error:' is not exported from - Stack Overflow
I had the same error, but used export default and it worked! declare class lama { // code here .. export default lama...
Read more >How to Fix Attempted Import Error Switch is Not Exported From ...
Command:- npm install react-router-dom@5.3.0In This Video We Will See How to Fix Attempted Import Error Switch is Not Exported From ...
Read more >Attempted import error: does not contain a default export
Blog : Referencehttps://progvocab.blogspot.com/2020/01/ attempted - import - error -does- not -contain.html.
Read more >Errors | Remirror
This page contains the documented errors that occur while using remirror. ... Attempted import error: 'en' is not exported from 'make-plural/plurals'.
Read more >Attempted import error 'X' is not exported from | bobbyhadz
The React.js "Attempted import error 'X' is not exported from" occurs when we try to import a named import that is not present...
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 Free
Top 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
Finally! I found it! I use
file-loader
which had.js
files excluded but had no.mjs
excluded, so when it importedmake-plural
it went through wrong loader. Right config looks like this now:Thanks for all the support, and sorry for bothering not related to your module. 🙏
@ivanbanov well, as far as I remember that was related to the lib that used
.mjs
file format instead of.js
(for ES Module, I guess) which broke the webpack build b/c of configuration didn’t support such file format.