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

[Bug]: Vue node version cannot compile properly #8164

Open
lzxb opened this issue Oct 18, 2024 · 2 comments
Open

[Bug]: Vue node version cannot compile properly #8164

lzxb opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@lzxb
Copy link
Contributor

lzxb commented Oct 18, 2024

System Info

System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1
Memory: 130.72 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v20.13.1/bin/yarn
npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
pnpm: 8.15.8 - ~/.nvm/versions/node/v20.13.1/bin/pnpm
bun: 1.1.27 - ~/.bun/bin/bun
Browsers:
Safari: 18.0.1
npmPackages:
@rspack/cli: 1.0.13 => 1.0.13
@rspack/core: 1.0.13 => 1.0.13

Details

package.json

{
  "name": "rspack",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "scripts": {
    "dev": "rspack serve",
    "build": "rspack build"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "vue": "^3.5.12",
    "@rspack/cli": "1.0.13",
    "@rspack/core": "1.0.13"
  }
}

rspack.config.js

export default {
    // After deletion, the web was successfully built
    target: 'node20',
    entry: {
        vue: {
            import: 'vue',
            library: {
                type: 'module'
            }
        }
    },
    experiments: {
        outputModule: true
    },
    optimization: {
        minimize: false
    },
};

Reproduce link

No response

Reproduce Steps

  1. pnpm install
  2. pnpm build
@lzxb lzxb added bug Something isn't working pending triage The issue/PR is currently untouched. labels Oct 18, 2024
@lzxb
Copy link
Contributor Author

lzxb commented Oct 18, 2024

Image
Image

@lzxb
Copy link
Contributor Author

lzxb commented Oct 18, 2024

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

1 participant