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
That proposal now uses a different syntax: import info from './package.json' with { type: 'json' }. The old syntax is only supported in Node.js and Chrome, and they are both planning to remove support for it (Node.js 22 next week, and Chrome 126 in June), so it will make this package not work anymore.
This package is using the legacy "import assertions" proposal, to import a JSON file in
webtorrent/index.js
Line 20 in c8ffdda
That proposal now uses a different syntax:
import info from './package.json' with { type: 'json' }
. The old syntax is only supported in Node.js and Chrome, and they are both planning to remove support for it (Node.js 22 next week, and Chrome 126 in June), so it will make this package not work anymore.For more info, see tc39/proposal-import-attributes#135.
The text was updated successfully, but these errors were encountered: