farm-fe/farmup

[Bug Report]: Run nestjs error with using farmup

ErKeLost opened this issue · 0 comments

repo: https://github.com/ErKeLost/test-nest

  1. Do not know if many dependencies caused by optional dependencies are not installed and need to be installed manually
    like this
image
  1. Decorator compilation failed
    config
import { defineConfig } from '@farmfe/core';

export default defineConfig({
  compilation: {
    input: {
      index: './src/main.ts',
    },
    script: {
      plugins: [],
      target: 'esnext',
      parser: {
        tsConfig: {
          decorators: true,
          dts: false,
          noEarlyErrors: false,
          tsx: false,
        },
      },
      decorators: {
        legacyDecorator: true,
        decoratorMetadata: false,
        decoratorVersion: '2021-12',
        includes: ['src/main.ts'],
        excludes: [],
      },
    },
    minify: false,
    persistentCache: false,
    output: {
      format: 'esm',
      targetEnv: 'node',
      entryFilename: '[entryName].mjs',
      filename: '[name].[hash].mjs',
    },
    external: [
      '^@nestjs/microservices$',
      '^@nestjs/websockets$',
      '^cache-manager$',
      '^class-transformer$',
      '^class-validator$',
    ],
  },
});

Failed to run pnpm dev

image
  1. The process was not caused to run by kill.
image