Comments (3)
Would you please try to add resolve.extensionAlias
to your rspack.config.js
? E.g.:
// rspack.config.js
export default {
resolve: {
extensionAlias: {
'.js': ['.ts', '.js'],
},
},
};
from rspack.
Would you please try to add
resolve.extensionAlias
to yourrspack.config.js
? E.g.:// rspack.config.js export default { resolve: { extensionAlias: { '.js': ['.ts', '.js'], }, }, };
It give another sets of errors
ERROR in ./node_modules/@techteamer/ocsp/lib/ocsp/utils.js
× All of the aliased extension are not found
ERROR in ./node_modules/asn1.js-rfc2560/index.js
× All of the aliased extension are not found
ERROR in ./node_modules/asn1.js-rfc5280/index.js
× All of the aliased extension are not found
ERROR in ./node_modules/cli-highlight/dist/index.js
× All of the aliased extension are not found
ERROR in ./node_modules/proxy-addr/index.js
× All of the aliased extension are not found
ERROR in ./node_modules/snowflake-sdk/lib/agent/cert_util.js
× All of the aliased extension are not found
ERROR in ./node_modules/snowflake-sdk/lib/connection/result/column.js
× All of the aliased extension are not found
ERROR in ./node_modules/typeorm/platform/PlatformTools.js
× All of the aliased extension are not found
ERROR in ./node_modules/typeorm/util/StringUtils.js
× All of the aliased extension are not found
from rspack.
Would you please try to add
resolve.extensionAlias
to yourrspack.config.js
? E.g.:// rspack.config.js export default { resolve: { extensionAlias: { '.js': ['.ts', '.js'], }, }, };
I have uploaded my repo to
https://github.com/cjnoname/example-esm
Please take a look, thanks
from rspack.
Related Issues (20)
- Enable loader type module test for Node 20
- [Bug]: 1.0.1-beta.15 production rename function name , Class too HOT 1
- [Bug]: Using `extensionAlias` with non-exist `package.json#module` cause error
- [Bug]: TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher') HOT 1
- Infra: improve e2e test stability HOT 1
- [Tracking]: Stabilize Rust Public API HOT 3
- [Bug]: TypeError: Class constructor d cannot be invoked without 'new' HOT 3
- [Bug]: css module has HMR but tsx file not update css name
- [Bug]: Set target to es3, but template literals are not transpiled HOT 1
- [Bug]: HOT 1
- [Bug]: export of comma-separated strings from scss modules does not work
- [Bug]: app crashes with module federation since rspack 1.0.0-rc.0 HOT 3
- [Feature]: support `LoaderContext.loadModule`
- [Bug]: cannot access a scoped thread local variable without calling `set` first HOT 3
- [Feature]: How to get real-time compilation progress and send it to the client?
- [Bug]: SIGILL error in v1.0.0 HOT 1
- [Feature]: support rust plugin and rust loader HOT 1
- [Feature]: Security Policy HOT 1
- [Feature]: SwcJsMinimizerRspackPlugin support charset option HOT 5
- [Bug]: writeToDisk feature (devMiddleware) does not work when starting devServer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspack.