-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24038 from storybookjs/yann/fix-cjs-entries-on-co…
…re-events Core: Add CJS entrypoints to errors in core events (cherry picked from commit 509dc79)
- Loading branch information
1 parent
4c80e05
commit 27a0887
Showing
6 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This is required for projects that require paths such as `@storybook/core-events/manager-errors` | ||
// but in CJS, while not in ESM mode. Else an error like this will occur: | ||
// ENOENT: no such file or directory, open '/xyz/node_modules/@storybook/core-events/manager-errors.js' | ||
module.exports = require('./dist/errors/manager-errors'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This is required for projects that require paths such as `@storybook/core-events/preview-errors` | ||
// but in CJS, while not in ESM mode. Else an error like this will occur: | ||
// ENOENT: no such file or directory, open '/xyz/node_modules/@storybook/core-events/preview-errors.js' | ||
module.exports = require('./dist/errors/preview-errors'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This is required for projects that require paths such as `@storybook/core-events/server-errors` | ||
// but in CJS, while not in ESM mode. Else an error like this will occur: | ||
// ENOENT: no such file or directory, open '/xyz/node_modules/@storybook/core-events/server-errors.js' | ||
module.exports = require('./dist/errors/server-errors'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters