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
router.js:1323 Error while processing route: add-a-building ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ../../.pnpm/@[email protected][email protected][email protected]/node_modules/@statelyai/inspect/dist/index.js Error: ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ../../.pnpm/@[email protected][email protected][email protected]/node_modules/@statelyai/inspect/dist/index.js
and
Uncaught Error: ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ../../.pnpm/@[email protected][email protected][email protected]/node_modules/@statelyai/inspect/dist/index.js
at Object.set [as exports]
Environment:
pnpm exec ember version
ember-cli: 6.0.1
node: 20.18.0
os: darwin arm64
We're talking embroider enabled build based on webpack. I suspect that might play a role:
Module isn't a thing in esm, so it would errors ... Or it requires special webpack or vite configuration to polyfill module.
Ember won't polyfill this sort of stuff because doing so would perpetuate bad patterns in the ecosystem.
It's probably just an oversight. This sort of compilation was common in the old days.
But the inspect package needs to use package.json#exports and provide per-format compilation (the rest of xstate already makes heavy and good use of package.json#exports)
Not sure which side is the problematic one (Ember / Embroider / statelyai/inspect / ?), but to document this:
Produces following errors:
and
Environment:
We're talking embroider enabled build based on webpack. I suspect that might play a role:
The text was updated successfully, but these errors were encountered: