Skip to content

Commit

Permalink
fix ModuleParseError
Browse files Browse the repository at this point in the history
error message
```
ModuleParseError: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module'
```

issues
- storybookjs/storybook#15335
- storybookjs/storybook#14877
  • Loading branch information
ganezasan committed Feb 15, 2023
1 parent cdbc777 commit f95697e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions .storybook/main.cjs
Expand Up @@ -16,14 +16,4 @@ module.exports = {
features: {
interactionsDebugger: true
},
webpackFinal: config => {
config.module.rules.push({
test: /\.(m?js)$/,
type: "javascript/auto",
resolve: {
fullySpecified: false,
},
})
return config
},
}
1 change: 1 addition & 0 deletions .storybook/package.json
@@ -0,0 +1 @@
{}

0 comments on commit f95697e

Please sign in to comment.