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
The recently released node-fetch has been fully rewritten into an ES module. This means that the import has to be done differently as it's not compatible with the new version.
Error message:
Must use import to load ES Module: node_modules/node-fetch/src/index.js
require() of ES modules is not supported.
require() of node_modules/node-fetch/src/index.js from node_modules/token-introspection/src/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename node_modules/node-fetch/src/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from node_modules/node-fetch/package.json
The text was updated successfully, but these errors were encountered:
I have seen that node-fetch had a major version upgrade, so I tried it out by updating it manually to see if it breaks node-token-introspection. After noticing that, I wrote the issue so this can be tracked 👍🏻
The recently released node-fetch has been fully rewritten into an ES module. This means that the import has to be done differently as it's not compatible with the new version.
Error message:
The text was updated successfully, but these errors were encountered: