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
{{ message }}
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
Current behavior:
When running the following command on windows (power shell, or git bash), the file provided for
customFieldTypesParserPathcannot be imported.storyblok generate-typescript-typedefs \ --sourceFilePaths ./components.json \ --destinationFilePath ./components.d.ts \ --JSONSchemaToTSOptionsPath ./jsonSchema.json \ --customFieldTypesParserPath ./fieldTypeParser.js`);Expected behavior:
The
generate-typescript-typedefscommand should also work on windows machines.Steps to reproduce:
Run an example with the
customFieldTypesParserPathattribute defined.Related code:
The reason for the problem is a
import(resolve(...)), that is used here.The reason is, that for esm imports posix paths should be used. To fix this, you need to import
resolvefromnode:path/posixlike so