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

[bug]: error TS7016: Could not find a declaration file for module '@strapi/design-system'. #1466

Closed
rktyt opened this issue Nov 16, 2023 · 2 comments
Labels
issue: bug Issue reporting a bug status: will not fix Won't fix as it's either intended or for some other reason

Comments

@rktyt
Copy link

rktyt commented Nov 16, 2023

What version of strapi-design-system are you using?

Npm version: 9
Node.js version: 18
Strapi Design System version: 1.13.0 | 1.13.1
Strapi version: 4.15.4

What's Wrong?

error TS7016: Could not find a declaration file for module '@strapi/design-system'.


Does it not support typescript yet?

To Reproduce

package.json:

{
  "devDependencies": {
    "@strapi/typescript-utils": "4.15.4",
    "typescript": "5.2.2"
  },
  "dependencies": {
    "@strapi/design-system": "1.13.0"
  }
}

tsconfig.json:

{
  "extends": "@strapi/typescript-utils/tsconfigs/admin"
}

index.tsx:

import { Layout } from '@strapi/design-system';

After creating the above files, run the following command

npm install && npx tsc --noEmit

Expected Behaviour

no errors occur

@rktyt rktyt added the issue: bug Issue reporting a bug label Nov 16, 2023
@joshuaellis
Copy link
Contributor

Types won't be published till V2

@joshuaellis joshuaellis closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
@joshuaellis joshuaellis pinned this issue Nov 16, 2023
@joshuaellis joshuaellis added the status: will not fix Won't fix as it's either intended or for some other reason label Nov 16, 2023
@Martijn-Schoenmaker-Webbio

Why close this issue? Plugins using typescript now don't work anymore. Building the plugin works and doesn't produce any error. Building Strapi with the plugins will produce the errors statet above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug status: will not fix Won't fix as it's either intended or for some other reason
Projects
None yet
Development

No branches or pull requests

3 participants