Closed vela1606 closed 3 weeks ago
Aha - it took me a while to figure out why this worked on my machine but not yours, but it must be that you're on Node v22, which has dropped support for "import assertions" (the assert { type: 'json' };
syntax) in favour of "import attributes" (the with { type: 'json' }
syntax). I'll make the change. (I might also write up a self-answered Stack Overflow question about this; there's bound to be a bajillion projects caught by the same issue when they upgrade to Node 22.)
For the record, I asked and self-answered a Stack Overflow question about this error: https://stackoverflow.com/q/78876691/1709587
Error:
Fix: Edit rollup.config.mjs Change:
import pkg from './package.json' assert { type: 'json' };
To:import pkg from './package.json' with { type: 'json' };