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
Failed to compile.
./node_modules/@udecode/plate-emoji/dist/index.mjs:120:50
Syntax error: Support for the experimental syntax 'importAttributes' isn't currently enabled (120:51):
118 |
119 | // src/lib/utils/EmojiLibrary/EmojiInlineLibrary.ts
> 120 | import emojiMartData from "@emoji-mart/data" with { type: "json" };
| ^
121 | var EmojiInlineLibrary = class {
122 | _emojis;
123 | _hash = {};
Add @babel/plugin-syntax-import-attributes (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes) to the 'plugins' section of your Babel config to enable parsing.
./node_modules/@udecode/plate-emoji/dist/react/index.mjs:123:50
Syntax error: Support for the experimental syntax 'importAttributes' isn't currently enabled (123:51):
121 |
122 | // src/lib/utils/EmojiLibrary/EmojiInlineLibrary.ts
> 123 | import emojiMartData from "@emoji-mart/data" with { type: "json" };
| ^
124 | var EmojiInlineLibrary = class {
125 | _emojis;
126 | _hash = {};
Add @babel/plugin-syntax-import-attributes (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes) to the 'plugins' section of your Babel config to enable parsing.
> Build failed because of webpack errors
error: script "build" exited with code 1
Rolling back to 41.0.0 solved the problem
Reproduction URL
No response
Reproduction steps
install @udecode/plate-emoji 42.0.0 and build project
Plate version
42.0.0
Slate React version
0.112.0
Screenshots
No response
Logs
No response
Browsers
No response
The text was updated successfully, but these errors were encountered:
Description
error when building nextjs project:
Rolling back to 41.0.0 solved the problem
Reproduction URL
No response
Reproduction steps
Plate version
42.0.0
Slate React version
0.112.0
Screenshots
No response
Logs
No response
Browsers
No response
The text was updated successfully, but these errors were encountered: