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
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
I'm trying to use frosted-glass in a project I am working on but I am having trouble loading the script. I am using GatsbyJS to set up my project and loading the script through React Helmet in my index.js file. I installed the frosted-glass package as described in the README. It is sitting in node_modules but somehow I am running into this error:
GET http://localhost:8000/node_modules/frosted-glass/dist/frostedglass.js 404 (Not Found)
If I just write src="node_modules/frosted-glass/dist/frostedglass.js", it still gives me the same error but this time, looks inside http://localhost:8000/about/ or whatever the current page is.
I tried to use require as well, removing the script tag in React Helmet:
Yes, I have the same error when connecting script via webpack import 'frosted-glass'
This works only if you connect a script via <script src='https://unpkg.com/frosted-glass/dist/frostedglass.js'></script>
I'm trying to use frosted-glass in a project I am working on but I am having trouble loading the script. I am using GatsbyJS to set up my project and loading the script through React Helmet in my index.js file. I installed the frosted-glass package as described in the README. It is sitting in node_modules but somehow I am running into this error:
GET http://localhost:8000/node_modules/frosted-glass/dist/frostedglass.js 404 (Not Found)
Here is what my React Helmet code looks like:
If I just write
src="node_modules/frosted-glass/dist/frostedglass.js"
, it still gives me the same error but this time, looks insidehttp://localhost:8000/about/
or whatever the current page is.I tried to use
require
as well, removing thescript
tag in React Helmet:const FrostedGlass = require('frosted-glass/dist/frostedglass.js');
but I get the following error:
GET http://localhost:8000/frostedglass/frostedglass.pxrm46tt.js 404 (Not Found)
I'm not sure if this is happening because of Gatsby or not. Any ideas?
The text was updated successfully, but these errors were encountered: