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
Bug description
When using node v22.9.0, importing the package raises an error
To Reproduce
Create a simple repro-bug-assert.mjs in a package with latest version of this package:
import'storybook-addon-remix-react-router'
Check that you have installed node v22+
$ node --version
v22.2.0
Run the test file:
$ node ./repro-bug-assert.mjs
file:///.../node_modules/storybook-addon-remix-react-router/dist/index.js:3
import de from '../package.json' assert { type: 'json' };
SyntaxError: Unexpected identifier 'assert'
Additional context
This is because of nodejs/node#52104 which removed the support of assert in node v22+, and that the builded ESM version of the package contains
Bug description
When using node v22.9.0, importing the package raises an error
To Reproduce
Create a simple
repro-bug-assert.mjs
in a package with latest version of this package:Check that you have installed node v22+
Run the test file:
Additional context
This is because of nodejs/node#52104 which removed the support of
assert
in node v22+, and that the builded ESM version of the package containsReplacing
assert
withwith
works.Environment
The text was updated successfully, but these errors were encountered: