-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG loading error #68
Comments
Hi @thiagocoelho, If you are still experiencing this issue, could you provide more details to help us understand? (for example, what you mean by "trying to use the Launcher", what steps you took leading up to this error, etc) The cause of the problem is not immediately apparent to me, though perhaps @dharness might have more of an idea. |
So I am running into a similar issue in my Next.JS project which I have a suspicion he may be using as well. I am including the Launcher using this which triggers the exact same error as @thiagocoelho. Looking into Next a little more I think it is related to this topic: vercel/next.js#79 Tried to tinker around with a solution but couldn't quite figure it out yet... |
It sounds like we should embed the svg manually in the jsx instead of importing it - if anyone has time to make that change it'd be great |
I am hopeful that using webpack with the appropriate file-loader will fix if this sort of thing pops up again, in #128:
|
define SRC like this: var path = require('path');
var SRC = path.resolve(__dirname, 'src/main/js'); And use file-loader for mp3 (module -> rules): {
test: /\.mp3$/,
include: SRC,
loader: 'file-loader'
} or use image-webpack-loader for load images: {
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
'file-loader',
{
loader: 'image-webpack-loader',
options: {
bypassOnDebug: true, // [email protected]
disable: true, // [email protected] and newer
},
},
]} For example, this is my webpack.config.js:
And do not forget to install the file-loader before:
I'm not sure if this is the best solution, but it works :) |
I'm trying to use the Launcher but in first run I got this:
I need to install anything besides react-chat-window?
The text was updated successfully, but these errors were encountered: