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
/Users/mspigolon/workspace/_experiments/asd/asd.js:2
app.register(require('fastify-orama'))
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/mspigolon/workspace/_experiments/asd/node_modules/fastify-orama/index.js from /Users/mspigolon/workspace/_experiments/asd/asd.js not supported.
Instead change the require of index.js in /Users/mspigolon/workspace/_experiments/asd/asd.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/Users/mspigolon/workspace/_experiments/asd/asd.js:2:14) {
code: 'ERR_REQUIRE_ESM'
}
Instead, working with cjs - it works with both cjs and esm without any issues.
The text was updated successfully, but these errors were encountered:
We should consider to migrate to cjm.
Right now:
Triggers:
Instead, working with cjs - it works with both cjs and esm without any issues.
The text was updated successfully, but these errors were encountered: