@arcgis/webpack-plugin working with component library named antd report an error Can't resolve 'moment/main' in...
See original GitHub issueDescription
@arcgis/webpack-plugin working with component library named antd report an error Can’t resolve ‘moment/main’ in…
you can run my code https://github.com/dxiuxiu/arcgis-webpack-ArcGISPlugin to reappear this bug ,i try to remove webpack setting relatived to @arcgis/webpack-plugin this bug will disappear
webpack setting relatived to @arcgis/webpack-plugin
const ArcGISPlugin = require("@arcgis/webpack-plugin");
module.exports = {
plugins: [
new ArcGISPlugin({
useDefaultAssetLoaders: false,
}),
],
externals: [
(context, request, callback) => {
if (/pe-wasm$/.test(request)) {
return callback(null, "amd " + request);
}
callback();
}
],
node: {
process: false,
global: false
}
}
or remove antd
but i just want to use @arcgis/webpack-plugin with antd ,how can i do ?
this is very important and emergency ,i want use they to develop my project 。
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Why can't I use antd in my component-library - Stack Overflow
I created a React component-libray using vite with simple components and it works as expected. I can publish it and link it to...
Read more >Ant Design of React
Following the Ant Design specification, we developed a React UI library antd that contains a set of high quality components and demos for...
Read more >Component-level CSS-in-JS - Ant Design
To solve this problem, each CSS-in-JS library will have its own way to deal with it. Let's take a look at Ant Design's...
Read more >FAQ - Ant Design
Here are the frequently asked questions about Ant Design and antd that you should look up before you ask in the community or...
Read more >V4 to V5 - Ant Design
This document will help you upgrade from antd 4.x version to antd 5.x version. If you are using 3.x or older version, please...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@roemhildtg https://www.npmjs.com/package/@arcgis/webpack-plugin/v/4.14.2
Appears to work for me!