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
When importing the pocketbase package, TypeScript complains that:
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("change-case")' call instead.
That makes sense, as the package.json file "types" setting is dist/pocketbase.d.mts, which, going by the extension, should be an ES module. Importing the existing cjs export is not an option, as only the client is exported there.
Changing the default entrypoint to dist/pocketbase.cjs.ts appears to work. ES modules should still pick up the module specified in "module"
The text was updated successfully, but these errors were encountered:
When importing the
pocketbase
package, TypeScript complains that:That makes sense, as the package.json file
"types"
setting isdist/pocketbase.d.mts
, which, going by the extension, should be an ES module. Importing the existingcjs
export is not an option, as only the client is exported there.Changing the default entrypoint to
dist/pocketbase.cjs.ts
appears to work. ES modules should still pick up the module specified in "module"The text was updated successfully, but these errors were encountered: