pkgs icon indicating copy to clipboard operation
pkgs copied to clipboard

pkg nx project, failed to get the node_modules path

Open wmvm0 opened this issue 10 months ago • 0 comments

execute npx spack error

Caused by:
    0: failed to analyze module
    1: failed to resolve fs from /Users/wmvm/code/me/wmvmjs/node_modules/log4js/lib/log4js.js
    2: failed to get the node_modules path] {
  code: 'GenericFailure'
}

the spack.config.js

const { config } = require("@swc/core/spack");

module.exports = config({
    entry: {
        web: __dirname + "/packages/common/src/index.ts",
    },
    output: {
        name: "index.js",
    },
    module: {},
});

I want pkg my nx project package to one js file。 how config

wmvm0 avatar Apr 10 '24 15:04 wmvm0