[bug]: can't require
some dependencies on server component
#60
Labels
issue: bug
Issue reporting a bug
require
some dependencies on server component
#60
What version of
@strapi/sdk-plugin
are you using?@strapi/sdk-plugin
version: 5.2.6What's Wrong?
Using the template created by
sdk-plugin
for Strapi v5 some imports inside the server component don't work. Building the plugin itself seems to work without problem, however once I try to start Strapi 5.0.0 I get the following error:This started happening only from RC.18 to the stable version, instead since the first RC up to RC.17 it was working without problems.
To Reproduce
npx @strapi/sdk-plugin@latest init test-plugin
, with TypeScript disabled.npm install uuid
service.js
like this:npm strapi develop
The issue can be circumvented by requiring
uuid
dynamically wrapping in atry
, but that shouldn't be necessary.Expected Behaviour
Strapi should start successfully, correctly importing the dependency.
The text was updated successfully, but these errors were encountered: