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
I'm currently using react-native-web components in storybook and would like to also import a component that's using reanimated.
Unfortunately, I'm running into the following error:
ERROR in ./node_modules/react-native-reanimated/lib/reanimated1/core/AnimatedBezier.js 130:8
Module parse failed: Unexpected token (130:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| export default class AnimatedBezier extends AnimatedNode {
> _value;
| _bezier;
My current guess is that storybook won't transpile node_modules by default and that it needs to do so in order to support class properties. Has anyone got this working or has a hint at what could fix this?
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.
-
I'm currently using react-native-web components in storybook and would like to also import a component that's using reanimated.
Unfortunately, I'm running into the following error:
My current guess is that storybook won't transpile node_modules by default and that it needs to do so in order to support class properties. Has anyone got this working or has a hint at what could fix this?
Beta Was this translation helpful? Give feedback.
All reactions