pmndrs / react-spring

✌️ A spring physics based React animation library
http://www.react-spring.dev/
MIT License
28.24k stars 1.19k forks source link

[bug]: You may need additional loader error showing in terminal when i did yarn add @nivo/core @nivo/bar in my react app #2154

Closed Znoy108x closed 1 year ago

Znoy108x commented 1 year ago

Which react-spring target are you using?

What version of react-spring are you using?

9.4.5

What's Wrong?

Error Message

./node_modules/@react-spring/web/dist/esm/index.js 113:11 Module parse failed: Unexpected token (113:11)

File was processed with these loaders:

You may need an additional loader to handle the result of these loaders.

this.transforms = I;
}
_value = null;
get() {
return this._value || (this._value = this._get());

Please help me resolve this issue !!

To Reproduce

i installed the nivo chart package in my react app and encountered this issue command : yarn add @nivo/core @nivo/bar

Expected Behaviour

-

Link to repo

-

Jabberrwocky commented 1 year ago

I ran into a similar error message after upgrading from version 9.2.4 to 9.7.2.

./node_modules/@react-spring/web/dist/esm/index.js 119:9
Module parse failed: Unexpected token (119:9)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|   }
| 
>   _value = null;
| 
|   get() {
AxiomeCG commented 1 year ago

I ran also on a similar error using webpack and @react-spring/three

Version: "@react-spring/three": "9.7.2"

./node_modules/@react-spring/shared/dist/esm/index.js 422:7
Module parse failed: Unexpected token (422:7)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| }
| var ge = class {
>     [g];
|     [m];
|     constructor(t) {
joshuaellis commented 1 year ago

closing due to a lack of reproduction supplied – if someone can provide a minimal reproduction, we can revisit this :)