-
Notifications
You must be signed in to change notification settings - Fork 38
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
Uncaught Error: Cannot find module "script!sql.js" #19
Comments
The reason behind the error is due to deprecation of short loader syntax (should be However, after I manually changed that, I see the following I suggest starting with the browser example from this repo and gradually add dependencies/config from ejected |
Thanks for the help. I'll try to fix it and send a PR. |
For some reason, there are several very similar "filesaver" packages on npm (in order of popularity)
You are using the third one and it works fine for your cases, but its readme says to use the first. I installed it and my error has gone :) I tried the most popular package with your examples and it doesn't work correctly for browser-media-file-input (card doesn't have the image from input). I've sent you a PR #23, where I switched the filesaverjs for file-saver, so if you wanted to, you could investigate why it doesn't work as expected. But it breaks your examples, so it's ok if you decline it. I've also sent a PR #22, which fixes short-loader syntax. |
Yeah, I've seen deprecation messages from
You are talking about the deprecate error in #19 (comment) right? I'm going to investigate the package from your pr later, thanks for help 👍 |
Sorry, I wasn't clear. Yes, I was talking about deprecate error. |
Apparently the most popular |
I've checked locally your branch and turned out you forgot to rebase with my latest changes, the error in examples was due to very old Thanks again, not only the package now is future-proof, but I also gained the knowledge about non-obvious (for me) deprecating behavior in some environments, appreciate that ✌️ I've published |
Everything's ok now, thanks! |
I tried to fix the issue #18 by checking if window object is present.
I added
here: https://github.com/ewnd9/anki-apkg-export/blob/master/src/index.js#L8
![image](https://user-images.githubusercontent.com/11838280/27260360-b0ecc8ac-5432-11e7-8eb9-a9e7f8624888.png)
and here: https://github.com/ewnd9/anki-apkg-export/blob/master/src/exporter.js#L56
(but in dist folder) and it worked. But I faced an error:
Unfortunately, I don't understand the cause of the error.
script
andraw
loaders are installed. Maybe the reason is in webpack config somewhere, but can't edit it.Do you have an idea what can cause this error and how I could fix it?
In case you'd like to try it yourself, I created a minimal representation of this case in this repo:
https://github.com/yakhinvadim/anki-apkg-export-error
This is app, created with create-react-app. My changes for this case are in this commit yakhinvadim/anki-apkg-export-error@4fec6c2
The text was updated successfully, but these errors were encountered: