Skip to content

Inability to import .ts files to workflow or step files when using Nuxt #278

@mikkokut

Description

@mikkokut

It is not possible to use shared typescript utility files in workflows / steps when using Nuxt.

When using relative imports, I see this error when navigating to app:

Unknown file extension ".ts" for /code/research/workflow-nuxt/server/utils/say.ts

When using import aliases such as import say from "@@/server/utils/say"; the build fails with error:

ERROR: Could not resolve "@@/server/utils/say"

Reproduction:
https://github.com/mikkokut/workflow-nuxt

Related to #261. I created a separate issue for Nuxt because there was a working workaround for Nitro.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions