-
Notifications
You must be signed in to change notification settings - Fork 127
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
Program is crashing in production only w/ invalidDid #1251
Comments
That's quite strange. What's the difference between your production and your develop environments? |
Now that you mention it, I was trying to use loadable components and webpack to do authorized cross-site scripting. I'm pretty sure something I did there has borked webpack. I'll investigate. Thanks. |
@dysbulic Did you every figure this out? I am having a similar problem using create-react-app. |
@Geo25rey, I've not yet figured it out. I tried pulling out everything custom I did to Webpack, removing I've honestly not been working on it much because it works locally, so I can run my tests. I just can't share them w/ anyone. |
Run |
Bug Description
When the button is clicked on https://dysbulic.github.io/xml-to-ipld/#/ceramic the application crashes with the following error:
The value of
DID
before the error is:This issue does not occur in development. In development, the value of
DID
at the same location is:The code being run is:
Then in
@ceramicnetwork/http-client
:It dies calling
new DID()
.To Reproduce
git clone https://github.com/dysbulic/xml-to-ipld.git
cd xml-to-ipld && yarn && yarn start
Expected Behavior
I would like the behavior in production to be the same as development.
Ceramic Versions
@ceramicnetwork/3id-did-resolver@^1.1.1
@ceramicnetwork/common@^0.17.0
@ceramicnetwork/docid@^0.5.1
@ceramicnetwork/doctype-caip10-link@^0.13.4
@ceramicnetwork/doctype-tile@^0.14.1
@ceramicnetwork/http-client@^0.10.1
@ceramicstudio/idx@^0.7.0
@ceramicstudio/[email protected]
Machine, OS, Browser Information
Linux fenrir 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 GNU/Linux
accounts[0]
is not defined.window.ethereum
is not defined.Additional Information
It looks to me like the minimizer made a mistake, but that just seems so unlikely.
The text was updated successfully, but these errors were encountered: