하다보니

[storybook 오류] ModuleBuildError: Module build failed (from .mmwh/react-refresh-webpack-plugin/loader/indeError: You must provide the URL of lib/mapping SourceMapConsumer.initialize({ 'lib/mappingefore using SourceMapConsumer at readWasm .... 본문

오류 모음

[storybook 오류] ModuleBuildError: Module build failed (from .mmwh/react-refresh-webpack-plugin/loader/indeError: You must provide the URL of lib/mapping SourceMapConsumer.initialize({ 'lib/mappingefore using SourceMapConsumer at readWasm ....

claire 2022. 5. 28. 17:23

react에서 story북을 설치하고 npm run storybook을 하려는데 자꾸 ModuleBuildError: Module build failed (from .mmwh/react-refresh-webpack-plugin/loader/inde
Error: You must provide the URL of lib/mapping SourceMapConsumer.initialize({ 'lib/mappingefore using SourceMapConsumer
    at readWasm ....이 오류가 나는 것이다. 이걸로 진짜 몇시간 고민하고 구글링한거 적용해보고 했는데 확실한 방법이 없었다..,

 

제가 해결한 방법은 node_modules와 package-lock.json을 모두 지우고 npm i를 해준 것입니다. 

콘솔창에 빨간 글자가 두려운 저와같은 코린이에게 도움이 되기를 바라며,,,,이만 총총,,,