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
In Storybook 6.2.0 development mode there's a problem with import resolving. This problem only occurs in the development mode the builded version works fine.
To Reproduce
Bootstrap an example project with npx -p @storybook/cli@next sb init --type react
Install some packages which support different modules like CJS and ESM
In development mode try to import and use that package
when imported in standard way import ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl" package doesn't work correctly in Storybook
when specifying the import path directly to ESM it works ok import ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl/lib-esm"
Expected behavior
Imports in development mode should work as they were in Storybook 6.1
Describe the bug
In Storybook 6.2.0 development mode there's a problem with import resolving. This problem only occurs in the development mode the builded version works fine.
To Reproduce
npx -p @storybook/cli@next sb init --type react
import ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl"
package doesn't work correctly in Storybookimport ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl/lib-esm"
Expected behavior
Imports in development mode should work as they were in Storybook 6.1
Screenshots
Screen.Recording.2021-03-18.at.10.27.49.mov
System
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: