rspack: [Bug]: should have dependency id
Version
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Memory: 1.94 GB / 15.66 GB
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (126.0.2592.102)
Internet Explorer: 11.0.19041.1202
Details
Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues Message: should have dependency id Location: crates\rspack_plugin_javascript\src\dependency\context\import_meta_context_dependency.rs:104
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: napi_register_module_v1
at <unknown source file>
2: napi_register_module_v1
at <unknown source file>
3: napi_register_module_v1
Reproduce link
no link
Reproduce Steps
i change the project from vite to rsbuild,follow the doc ,set the config import { defineConfig } from ‘@rsbuild/core’; import { pluginVue } from ‘@rsbuild/plugin-vue’; import { pluginSass } from ‘@rsbuild/plugin-sass’; import { resolve } from ‘path’; const pathResolve = (dir: string) => { return resolve(__dirname, ‘.’, dir); };
export default defineConfig({ plugins: [ pluginVue(), pluginSass() ], html: { template: ‘./index.html’, }, source: { entry: { index: ‘./src/main.ts’, }, alias: { ‘/@’: pathResolve(‘./src/’), ‘vue-i18n’: ‘vue-i18n/dist/vue-i18n.cjs.js’, VUE_I18N_LEGACY_API: JSON.stringify(false), VUE_I18N_FULL_INSTALL: JSON.stringify(false), INTLIFY_PROD_DEVTOOLS: JSON.stringify(false), VERSION: JSON.stringify(process.env.npm_package_version), NEXT_NAME: JSON.stringify(process.env.npm_package_name), }, }, }); and run build ,it was failed
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (9 by maintainers)
This is a glob match, please check your source files and try to match it.