Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg nx project, failed to get the node_modules path #36

Open
wmvm0 opened this issue Apr 10, 2024 · 0 comments
Open

pkg nx project, failed to get the node_modules path #36

wmvm0 opened this issue Apr 10, 2024 · 0 comments

Comments

@wmvm0
Copy link

wmvm0 commented Apr 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant