You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a new plugin with strapi 5 and typescript, strapi can no longer be started if plugin is used inside strapi.
While creating the plugin the following warnings appear:
when starting the app the following error appears:
plugins/new-plugin/admin/src/pages/App.tsx:1:22 - error TS2307: Cannot find module '@strapi/strapi/admin' or its corresponding type declarations.
1 import { Page } from '@strapi/strapi/admin';
To Reproduce
Create a new Strapi project with Typescript
Create a new plugin inside the Strapi project : npx @strapi/sdk-plugin init plugins/new-plugin
Say Y to everything
Add the plugin to the config file as told by the instructions:
[INFO]
You can now enable your plugin by adding the following in ./config/plugins.ts
────────────────────────────────────────────
export default {
// ...
'generate-recipe': {
enabled: true,
resolve: 'plugins/new-plugin'
},
// ...
}
run npm run develop
Expected Behaviour
App loads
The text was updated successfully, but these errors were encountered:
What version of
@strapi/sdk-plugin
are you using?What's Wrong?
When trying to create a new plugin with strapi 5 and typescript, strapi can no longer be started if plugin is used inside strapi.
While creating the plugin the following warnings appear:
when starting the app the following error appears:
To Reproduce
npx @strapi/sdk-plugin init plugins/new-plugin
npm run develop
Expected Behaviour
App loads
The text was updated successfully, but these errors were encountered: