Skip to content

Builds Failing: Missing TypeScript Transpiling in Examples Config #3694

@raclim

Description

@raclim

Description

The Docker/CI build started failing during the build:examples step with the following error:

Module parse failed: Identifier 'UserModel' has already been declared
You may need an appropriate loader to handle this file type

This is probably caused by webpack/config.examples.js, which currently only transpiles .js files. Building the examples imports server/models/user.ts, so when webpack attempted to parse TypeScript, it caused a syntax error.

Steps to Reproduce

Run npm run build in the command line, which will show an error.

Metadata

Metadata

Assignees

Labels

BugError or unexpected behaviorsPriority:HighShould be addressed soon but not critical

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions