Type error defining stripe plugin when project type is module.

I have both stripe plugin and better auth on the same version 1.2.5. When i switch my project type to module then I get the following type error. I cannot solve it.
5 Replies
regex
regexOP2w ago
regex
regexOP2w ago
my tsconfig:
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": ["**/*.ts"],
"exclude": ["dist"]
}
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": ["**/*.ts"],
"exclude": ["dist"]
}
package.json
{
"name": "express-boilerplate",
"version": "1.0.0",
"main": "index.js",
"author": "author",
"license": "MIT",
"type": "module",
"description": "Express Boilerplate",
"imports": {
"#*": "./*"
},
}
{
"name": "express-boilerplate",
"version": "1.0.0",
"main": "index.js",
"author": "author",
"license": "MIT",
"type": "module",
"description": "Express Boilerplate",
"imports": {
"#*": "./*"
},
}
regex
regexOP2w ago
No description
regex
regexOP2w ago
@bekacru any ideas?
DONYYB
DONYYB15h ago
how are you initing the stripe client?

Did you find this page helpful?