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
Hi All,
I'm trying to add LearnCard to an existing React app. When I import { initLearnCard } from "@learncard/core"; I get a compile error:
Failed to compile.
./node_modules/@learncard/init/dist/init.esm.js
SyntaxError: C:\iq4\client\tb8\iq4-30\node_modules@learncard\init\dist\init.esm.js: Support for the experimental syntax 'importMeta' isn't currently enabled (4419:51):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm trying to add LearnCard to an existing React app. When I import { initLearnCard } from "@learncard/core"; I get a compile error:
Failed to compile.
./node_modules/@learncard/init/dist/init.esm.js
SyntaxError: C:\iq4\client\tb8\iq4-30\node_modules@learncard\init\dist\init.esm.js: Support for the experimental syntax 'importMeta' isn't currently enabled (4419:51):
4417 | return wasm;
4418 | if (typeof input === "undefined") {
Add @babel/plugin-syntax-import-meta (https://git.io/vbKK6) to the 'plugins' section of your Babel config to enable parsing.
I tried a bunch of things from stackoverflow, but havent been able to get rid of this.
Appreciate any help.
Tim
Beta Was this translation helpful? Give feedback.
All reactions