You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the build outputs include styles.css.map and styles.layer.css.map. I would like to request that these files be excluded, similar to how it's handled in mantine-contextmenu and @mantine/core.
How to fix
You can modify the postcss.config.js file to be the same as in mantine-contextmenu. Specifically, you remove the map option to ensure that .css.map files are not included in the dist directory.
Reason
When bulk loading mantine CSS in a react-router framework, using the following imports:
The sourceMappingURL comment from mantine-datatable are retained, but source map file is not copied. As a result, when I open the developer console and access the page, the react-router server logs an error as follows:
Error: No route matches URL "/app/app.css.map"
at getInternalRouterError (/myproj/node_modules/react-router/dist/development/index.js:3908:5)
at Object.query (/myproj/node_modules/react-router/dist/development/index.js:2744:19)
at handleDocumentRequest (/myproj/node_modules/react-router/dist/development/index.js:9300:35)
at requestHandler (/myproj/node_modules/react-router/dist/development/index.js:9217:24)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at nodeHandler (/myproj/node_modules/@react-router/dev/dist/vite.js:1969:30)
at /myproj/node_modules/@react-router/dev/dist/vite.js:1975:17
This error occurs when files with sourceMappingURL comments are imported. If the comments are removed from mantine-datatable, this issue will be resolved.
Is this a problem within other libraries?
You are correct.
However, I have not been able to pinpoint the root cause of this issue. It appears that there might be a problem with the postcss configuration of mantine and the configuration of react-router, but I am not sure which project this issue should be reported to and resolved by.
On the other hand, a quick resolution to this problem is suggested by this issue. I would appreciate it if this fix could be implemented.
The text was updated successfully, but these errors were encountered:
Currently, the build outputs include
styles.css.map
andstyles.layer.css.map
. I would like to request that these files be excluded, similar to how it's handled in mantine-contextmenu and @mantine/core.How to fix
You can modify the
postcss.config.js
file to be the same as in mantine-contextmenu. Specifically, you remove the map option to ensure that.css.map
files are not included in thedist
directory.Reason
When bulk loading mantine CSS in a react-router framework, using the following imports:
The
sourceMappingURL
comment frommantine-datatable
are retained, but source map file is not copied. As a result, when I open the developer console and access the page, the react-router server logs an error as follows:This error occurs when files with
sourceMappingURL
comments are imported. If the comments are removed frommantine-datatable
, this issue will be resolved.Is this a problem within other libraries?
You are correct.
However, I have not been able to pinpoint the root cause of this issue. It appears that there might be a problem with the postcss configuration of mantine and the configuration of react-router, but I am not sure which project this issue should be reported to and resolved by.
On the other hand, a quick resolution to this problem is suggested by this issue. I would appreciate it if this fix could be implemented.
The text was updated successfully, but these errors were encountered: