plugins
plugins copied to clipboard
[@rollup/plugin-node-resolve] bind @rollup/plugin-alias and @rollup/plugin-yaml has problem ??
- Rollup Plugin Name: @rollup/plugin-node-resolve
- Rollup Plugin Version: 14.0.1
- Rollup Version: 2.79.0
- Operating System (or Browser): linux mageia 8
- Node Version: LTS
- Link to reproduction : https://replit.com/@shaoahs/rollup-repro-sample0001#src/main.js
Expected Behavior
src/main → dest...
created dest in 168ms
Actual Behavior
[!] Error: Could not load /home/runner/rollup-repro-sample0001/src/logo (imported by src/main.js): ENOENT: no such file or directory, open '/home/runner/rollup-repro-sample0001/src/logo'
Error: Could not load /home/runner/rollup-repro-sample0001/src/logo (imported by src/main.js): ENOENT: no such file or directory, open '/home/runner/rollup-repro-sample0001/src/logo'
exit status 1
Additional Information
config ( use file extension and path map )
const customResolver = resolve({
extensions: ['.ts', '.js', '.yml', '.json']
});
let paths = {
customResolver,
entries: {
'src': path.resolve('src/')
}
};
source code ( use short name and no file extension name)
import * as demo from 'src/demo';
console.log('main entry');
class A extends demo.Base {
constructor(){
}
}
async function create() {
// use plugin-node-resolve version 14.0.1 is error .
// use plugin-node-resolve version 13.0.3 is normal .
let logo = await import('src/logo');
// use plugin-node-resolve version 14.0.1 is normal .
// use plugin-node-resolve version 13.0.3 is normal .
// let logo = await import('src/logo.yml');
let a = new A();
console.log(a);
console.lo(logo);
}
await create();
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ