Closed Ninglo closed 8 months ago
System:
OS: macOS 13.6.1 (22G313)
CPU: 2.6 GHz 6-Core Intel Core i7
Memory: 32 GB 2667 MHz DDR4
npmPackages:
@rsbuild/cli: 0.3.14
Source code:
// src/main/index.ts
import './non-existent/path/foo.node'
// rspack.config.js
const path = require('path');
/**
* @type {import ('@rspack/cli').Configuration}
*/
const config = {
entry: {
index: path.join(__dirname, 'src/main/index.ts'),
},
output: {
path: path.resolve(__dirname, 'dist'),
}
}
May I be responsible for fulfilling this requirement? @Boshen
You may upgrade to the latest version ;-). It's been fixed.
When I try to compile a project with a non-existent path in import, rspack will display an error message like this:
This error is emphasized on
typescript
, buttypescript
has absolutely nothing to do with the cause of this problem. Especially in a non-code resource, such an error message will make people think that it is aloader
problem rather than a path problem. For example: