Skip to content
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

Can't load avalanche.js in code sandbox #89

Closed
harryEth opened this issue Aug 31, 2020 · 4 comments
Closed

Can't load avalanche.js in code sandbox #89

harryEth opened this issue Aug 31, 2020 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@harryEth
Copy link

I have an issue with using avalanche.js in the code sandbox. when I import avalanche.js in code sandbox, Could not find module in path: 'avalanche' relative to '/src/App.js' error shows up.

image

code example:

image

anyone can help with this?

@collincusce
Copy link
Contributor

collincusce commented Sep 5, 2020

What is code sandbox? Ah this looks like some React thing maybe? @kanatliemre do you know what the issue is?

@collincusce collincusce added the help wanted Extra attention is needed label Sep 5, 2020
@kanatliemre
Copy link
Contributor

Screen Shot 2020-09-07 at 8 31 21 PM

Have you added avalanche as a dependency?

@harryEth
Copy link
Author

harryEth commented Sep 8, 2020

Screen Shot 2020-09-07 at 8 31 21 PM

Have you added avalanche as a dependency?

yes, of course. can you check here? https://codesandbox.io/s/github/MagicLabs/example-avalanche

it works well on the local development, but not in the code sandbox.

@collincusce
Copy link
Contributor

I'm not sure. I have never heard of "codesandbox.io" but this looks like a third party application that can't handle...something... but Avalanche.js is fine. For instance, our wallet works just fine in VSCode and when compiled, but put it in codesandbox.io and it flips out.

https://codesandbox.io/s/strange-wildflower-qnzwr

My advice is to file a ticket with the codesandbox.io folks to figure out what they're missing on their end. If they have information for us, I'll be receptive, but unless it's a standard we're missing, we're not likely to change.

dfenstermaker pushed a commit that referenced this issue Feb 22, 2023
* wip

* xchain

* rename to avm

* nits

* wip

* wip

* add test

* refactor type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants