kinde-node-express icon indicating copy to clipboard operation
kinde-node-express copied to clipboard

Cannot use it with imports @kinde-oss/kinde-node-express

Open whitetown opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
  • [X] I have checked the latest version of the library to replicate my issue
  • [X] I have read the contributing guidelines
  • [X] I agree to the terms within the code of conduct

Describe the issue

import { setupKinde } from '@kinde-oss/kinde-node-express' or import pkg from '@kinde-oss/kinde-node-express'

(node:27836) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use node --trace-warnings ... to show where the warning was created) warning:65 Uncaught SyntaxError .../node_modules/@kinde-oss/kinde-node-express/dist/index.js:1 import { getInternalClient, setupInternalClient } from './setup';

the entire backend is written with 'import', there is no way for me to change it to 'require'

Library URL

https://github.com/kinde-oss/kinde-node-express

Library version

latest

Operating system(s)

macOS

Operating system version(s)

latest

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

whitetown avatar May 23 '24 11:05 whitetown