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
Trying to run pnpm dev:storybook with (at least) Node 23.7 or 23.8 results in an error because module is not defined. This seems to be related to the file using both CommonJS(module.exports , require) and ESM(import) features.
Expected behavior
No response
Reproducible Example
Download Node 23.8 and try to run pnpm dev:storybook
Suggested solution
Remove the ESM import at the top of the file and replace it the equivalent CommonJS syntax:
Problem
Trying to run
pnpm dev:storybook
with (at least) Node 23.7 or 23.8 results in an error becausemodule
is not defined. This seems to be related to the file using both CommonJS(module.exports
,require
) and ESM(import
) features.Expected behavior
No response
Reproducible Example
Download Node 23.8 and try to run
pnpm dev:storybook
Suggested solution
Remove the ESM import at the top of the file and replace it the equivalent CommonJS syntax:
I have tested this locally and it does resolve the problem. Changing the file to only use ESM might be better, but i couldn't quite do it.
Additional context
No response
Package
@vtex/shoreline
Packages version
No response
Browser
Chrome
Package Manager
pnpm
The text was updated successfully, but these errors were encountered: