Skip to content
New issue

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

Typescript issue in routes.js #428

Open
raymondboswel opened this issue Jan 31, 2022 · 2 comments
Open

Typescript issue in routes.js #428

raymondboswel opened this issue Jan 31, 2022 · 2 comments
Labels
bug Something isn't working v2

Comments

@raymondboswel
Copy link

bug description
When running svelte-check, I get the following issue:
.routify/routes.js:11:33
Hint: Could not find a declaration file for module '@roxi/routify/runtime/buildRoutes'. './node_modules/@roxi/routify/runtime/buildRoutes.js' implicitly has an 'any' type.
If the '@roxi/routify' package actually exposes this module, try adding a new declaration (.d.ts) file containing declare module '@roxi/routify/runtime/buildRoutes';

Although this isn't an error/warning, I'd like to get the output of the compiler check as clean as possible.

package.json

npm run svelte-check -- --tsconfig ./tsconfig.json"

version
2.18.4

@raymondboswel raymondboswel added bug Something isn't working needs triage labels Jan 31, 2022
@nonameolsson
Copy link

Any news on this?

@jakobrosenberg
Copy link
Member

@nonameolsson could you try updating your node_modules/@roxi/routify/package.json with this entry?

Line 26:

  "exports": {
    ".": {
      "types": "./typings/runtime/index.d.ts", //new line
      "svelte": "./runtime/index.js",
      "default": "./runtime/index.js"
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2
Projects
None yet
Development

No branches or pull requests

4 participants