We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@inertiajs/core
@inertiajs/react
When importing types in a project with NodeNext as module and moduleResolution in tsconfig.json, the types are not being resolved properly because.
NodeNext
module
moduleResolution
tsconfig.json
// tsconfig.json { "compilerOptions": { "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true } }
// app.ts import { VisitOptions } from '@inertiajs/core';
Error:
Module '"@inertiajs/core"' has no exported member 'VisitOptions'.
Similarly, there are other such errors for all the types when strict model is enabled in tsconfig.json
strict
"Parameter 'title' implicitly has an 'any' type."
"Binding element 'el' implicitly has an 'any' type."
"Binding element 'App' implicitly has an 'any' type."
"Binding element 'props' implicitly has an 'any' type."
"Parameter 'name' implicitly has an 'any' type."
arethetypeswrong correctly points out the problems with the exported types
@inertiajs/[email protected]
"@inertiajs/core"
"@inertiajs/core/server"
node10
node16
bundler
"@inertiajs/react"
"@inertiajs/react/server"
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Versions:
@inertiajs/core
version:1.0.14@inertiajs/react
version: 1.0.14Describe the problem:
When importing types in a project with
NodeNext
asmodule
andmoduleResolution
intsconfig.json
, the types are not being resolved properly because.Steps to reproduce:
Error:
Similarly, there are other such errors for all the types when
strict
model is enabled intsconfig.json
"Parameter 'title' implicitly has an 'any' type."
"Binding element 'el' implicitly has an 'any' type."
"Binding element 'App' implicitly has an 'any' type."
"Binding element 'props' implicitly has an 'any' type."
"Parameter 'name' implicitly has an 'any' type."
Reason
arethetypeswrong correctly points out the problems with the exported types
@inertiajs/[email protected]
"@inertiajs/core"
"@inertiajs/core/server"
node10
node16
(from CJS)🚭 Unexpected module syntax
🥴 Internal resolution error (6)
❗️ Incorrect default export
🚭 Unexpected module syntax
🥴 Internal resolution error
node16
(from ESM)bundler
@inertiajs/[email protected]
"@inertiajs/react"
"@inertiajs/react/server"
node10
node16
(from CJS)🚭 Unexpected module syntax
🥴 Internal resolution error (6)
❗️ Incorrect default export
🚭 Unexpected module syntax
node16
(from ESM)bundler
The text was updated successfully, but these errors were encountered: