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
When doing a regular es6 import I got the error SyntaxError: expected expression, got '<' Animated_GIF.worker:1.
This is due to the fact that the script is trying to load a missing webworker from the root and the index.html is served.
The default es6 is import Animated_GIF from 'animated_gif' but package.jsonmain points to the src file which does not have the webworker combined.
One solution is to point to the correct file with import Animated_GIF from 'animated_gif/dist/Animated_GIF.min'. The other is to update the package.jsonmain.
I could do a pull request but do I update package.json or update README.md with the correct es6 import? The former would require an npm publish as well.
ps: npm install node_modules should only contain the dist js, it might be wise to add files to package.json as well.
The text was updated successfully, but these errors were encountered:
When doing a regular es6 import I got the error
SyntaxError: expected expression, got '<' Animated_GIF.worker:1
.This is due to the fact that the script is trying to load a missing webworker from the root and the
index.html
is served.The default es6 is
import Animated_GIF from 'animated_gif'
butpackage.json
main points to the src file which does not have the webworker combined.One solution is to point to the correct file with
import Animated_GIF from 'animated_gif/dist/Animated_GIF.min'
. The other is to update thepackage.json
main.I could do a pull request but do I update
package.json
or updateREADME.md
with the correct es6 import? The former would require annpm publish
as well.ps: npm install node_modules should only contain the dist js, it might be wise to add
files
topackage.json
as well.The text was updated successfully, but these errors were encountered: