-
-
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 #24063 from storybookjs/yann/more-context-on-core-…
…events-comments Maintenance: Add more context to explanation in core-events errors
- Loading branch information
Showing
3 changed files
with
12 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
// 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: | ||
// This is required for compatibility in projects that don't support the exports map field (e.g. Jest 27), | ||
// so when require paths such as `@storybook/core-events/manager-errors`, | ||
// An error like this will occur: | ||
// ENOENT: no such file or directory, open '/xyz/node_modules/@storybook/core-events/manager-errors.js' | ||
// https://github.com/storybookjs/storybook/pull/24038#issuecomment-1704684432 | ||
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
// 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: | ||
// This is required for compatibility in projects that don't support the exports map field (e.g. Jest 27), | ||
// so when require paths such as `@storybook/core-events/preview-errors`, | ||
// An error like this will occur: | ||
// ENOENT: no such file or directory, open '/xyz/node_modules/@storybook/core-events/preview-errors.js' | ||
// https://github.com/storybookjs/storybook/pull/24038#issuecomment-1704684432 | ||
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
// 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: | ||
// This is required for compatibility in projects that don't support the exports map field (e.g. Jest 27), | ||
// so when require paths such as `@storybook/core-events/server-errors`, | ||
// An error like this will occur: | ||
// ENOENT: no such file or directory, open '/xyz/node_modules/@storybook/core-events/server-errors.js' | ||
// https://github.com/storybookjs/storybook/pull/24038#issuecomment-1704684432 | ||
module.exports = require('./dist/errors/server-errors'); |