Skip to content

Enable bundle broke the entities #24

@weilinzung

Description

@weilinzung

Getting two different errors so far I know when enabling "bundle: true" , and without that would be fine

Class constructor BaseEntity cannot be invoked without 'new'",
Entity metadata for BaseEntity#Metric was not found. Check if you specified a correct entity object and if it's connected in the connection options.",

    "options": {
        "platform": "node",
        "outputPath": "dist/apps/api",
        "format": ["cjs"],
        "bundle": true,
        "sourcemap": true,
        "main": "apps/api/src/main.ts",
        "tsConfig": "apps/api/tsconfig.app.json",
        "esbuildConfig": "apps/api/esbuild.config.js",
        "assets": ["apps/api/src/assets", "apps/api/src/views/**"]
      },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions