brianzinn / react-babylonjs

React for Babylon 3D engine
https://brianzinn.github.io/react-babylonjs/
824 stars 105 forks source link

Unable to run the storybook locally #133

Closed shaderstack closed 3 years ago

shaderstack commented 3 years ago

I'm trying to run npm run storybook. Getting this error currently on my ubuntu machine -

ERR! Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/absi/ss/react-babylonjs/.storybook/main.js
ERR! require() of ES modules is not supported.

Let me know if more info is needed to debug this.

brianzinn commented 3 years ago

Hi, sorry you ran into that one. It’s a pain. The “type: module” needs to be removed for storybook to work. I keep intending to move storybook into a sub folder completely - not just to fix that, but to clean the dependencies as well. I think I can get to that next month, finally...

shaderstack commented 3 years ago

Cool, thanks. Closing this.