Replies: 2 comments 2 replies
-
Your CSS is getting imported into your generated JavaScript which is leading to that error. You need to ensure you've configured |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would you be able to provide a snippet of code on how to config this? I have no idea how to config it in the craco.config.js file. Currently, I have my craco.config.js file like this const nodeExternals = require("webpack-node-externals");
module.exports = {
webpack: {
configure: {
target: "electron-renderer",
externals: [
nodeExternals({
allowlist: [/webpack(\/.*)?/, "electron-devtools-installer"],
}),
],
},
},
}; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I currently have an ElectronJS + ReactJS app. I'm also using the Chakra UI kit for my front end. When following the documentation on how to use fonts in the Chakra UI documentation, I'm encountering this error.
Specifically, I'm trying to use the Lato font. I'm not sure if is it because of the package or my project's setup. My project was set up following this guide on MongoDB.. If you guys need more information from me please feel free to ask for it. I appreciate any help in advance!
Steps to Reproduce
Expected behavior
No response
Version
4.5.10
OS
No response
Browser
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions