issue with import.meta.url in React app #365
Unanswered
timguinther
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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