-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- OS: Windows 10
- Node.js: v18.17.1
- TypeScript: v5.2.2
- Package Manager: Yarn v3.6.3
- Bundler: Vite v4.4.9
- IDE: PhpStorm 2023.2.1
Reproduction
Describe the bug
Neither TypeScript nor IDE cannot resolve collection/uid helpers:
error TS2307: Cannot find module 'pinia-orm/dist/helpers' or its corresponding type declarations.
87 import { useCollect } from "pinia-orm/dist/helpers";
Rollup is fine though.
In previous versions of Pinia ORM I just added .js at the end and it worked. With 1.7.0 release this hack stopped working for some reason.
Additional context
My tsconfig.json:
{
"compilerOptions": {
"allowJs": true,
"module": "ESNext",
"moduleResolution": "bundler",
"jsx": "preserve",
"strict": true,
"isolatedModules": true,
"target": "ESNext",
"esModuleInterop": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"skipLibCheck": true,
"paths": {
"@/*": ["./resources/js/*"]
}
},
"include": [
"resources/js/**/*.ts",
"resources/js/**/*.d.ts",
"resources/js/**/*.vue",
"vite.config.ts"
]
}Logs
No response
CodeDredd
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working