Skip to content
New issue

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

Failed to compile: logicalAssignment operator #30

Open
ericpyle opened this issue Mar 11, 2024 · 0 comments
Open

Failed to compile: logicalAssignment operator #30

ericpyle opened this issue Mar 11, 2024 · 0 comments

Comments

@ericpyle
Copy link

Fails to compile in my create-react-app due to

Failed to compile.

./node_modules/awoken-bible-reference/dist/awoken-ref.esm.mjs
SyntaxError: /home/epyle/repos/ubsicap/sltt/client/node_modules/awoken-bible-reference/dist/awoken-ref.esm.mjs: Support for the experimental syntax 'logicalAssignment' isn't currently enabled (13:22):

  11 | var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  12 | var __spreadValues = (a, b) => {
> 13 |   for (var prop in b ||= {})
     |                      ^
  14 |     if (__hasOwnProp.call(b, prop))
  15 |       __defNormalProp(a, prop, b[prop]);
  16 |   if (__getOwnPropSymbols)

Add @babel/plugin-proposal-logical-assignment-operators (https://git.io/vAlRe) to the 'plugins' section of your Babel config to enable transformation.

If you don't need to use the logicalAssignment operator, it would make it easier for me to use this library in my legacy app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant