Comments (11)
This was the error I had in the very beginning:
"ln -s ./lib/react ./react 'ln' is not recognized as an internal or external command"
Is it possible to be the src of the error I had?
from starter-kit.
Hey @dimitrileite. Sorry to hear about your poor experience.
Can you try to import react hooks in the following way:
import { useWeb3Injected, useWeb3Network } from '@openzeppelin/network/lib/react';
at App.js
.
Let me know how it goes!
from starter-kit.
I have been looking around and realized that:
- Module "context/Web3Context" is under "lib"
- It is required inside "useWeb3Hook.js" via a call to "../context/Web3Context" instead of "../lib/context/Web3Context"
- Once it is corrected it gives me other errors of the same type...
Do I need to go reviewing all these errors? Are they going to end... is there a bigger hack that I`m missing here?
from starter-kit.
I remembered that when I was installing [email protected], [email protected], @openzeppelin/[email protected] the command "ls" to two react directories was not accomplished (executed) (Running Windows...).
Is it possible that these errors belong to this not accomplished step. If it was, how can I LS on Windows that command?
from starter-kit.
Hi @dimitrileite,
Sorry to hear that you are having issues.
You may want to look at using Windows Subsystem for Linux (WSL) https://docs.microsoft.com/en-us/windows/wsl/about
I use WSL on Windows 10 and have far fewer issues than when I was doing smart contract development on Windows (7).
I recommend for support questions to ask in the Community Forum: https://forum.openzeppelin.com/ so that the entire community can answer.
Which starter kit were you using?
At what point did you get the error: "ln -s ./lib/react ./react 'ln' is not recognized as an internal or external command".
from starter-kit.
I'm sorry @yly-io for the late response back. I was on another project. I'll try what you said and get back to you soon.
from starter-kit.
OpenZeppelin Network.js uses preinstall
to create a symlink for React.
ln
doesn't exist on Windows.
https://github.com/OpenZeppelin/openzeppelin-network.js/blob/master/package.json#L14
An alternative to using Windows Subsystem for Linux is to try installing with Git Bash terminal: OpenZeppelin/openzeppelin-network.js#26 (comment)
I have created an Issue for OpenZeppelin Network.js to support Windows installation: OpenZeppelin/openzeppelin-network.js#27
from starter-kit.
Hi @ylv-io , I just encountered the same error while tracking Dapp's setup with GSN (https://docs.openzeppelin.com/learn/sending-gasless-transactions).
I'm on WSL.
And after using the command:
- ln -ns ../../build
- npm start
Output :
Failed to compile
./src/App.js
Module not found: Can't resolve '@openzeppelin/network/lib/react' in '/home/hydris/blockchain/gsn-dapp/client/src'.
Can you help me with this problem?
from starter-kit.
Hm. Strange. Have you run npm install
inside client folder? Can you check that react
folder exists at path client/node_modules/@openzeppelin/network/lib/react
?
from starter-kit.
Hi @hydris-bessa,
I have answered your question in the forum: https://forum.openzeppelin.com/t/gsn-starter-kit-module-not-found-cant-resolve-openzeppelin-network-lib-react/2810
@ylv-io I haven't had it myself, but community members occasionally report issues with the creation of the soft link (not just on Windows).
from starter-kit.
Thank you @abcoathup and @ylv-io for your answer.
I had to reinstall all the packages.
There was a problem with the installation of @openzeppelin/network. Some components did not install correctly which prevented the import from App.js
from starter-kit.
Related Issues (20)
- GSN with ERC20 Compliant Smart Contract HOT 6
- Move truffle box to separate repository
- Does not detect Ganache HOT 1
- zos unpack zepkit omits the previous startup instructions. HOT 4
- getGanacheAddresses incorrectly reports no local ganache found HOT 1
- Documentation: add purpose of migrations to README
- Issue in setting up zepkit HOT 5
- Out of gas: Test networks require a different HD-Wallet-Path against to Mainnet HOT 5
- Page not found
- Review setup instructions for the end user
- Fix infura API token usage in truffle config HOT 1
- Merge master & stable branches HOT 1
- Integrate GSN into starter-kit HOT 1
- Error: Cannot find module './build/Release/scrypt' HOT 2
- Error: npm install -g [email protected] [email protected] @openzeppelin/[email protected] HOT 2
- Migrate from 3 years old `scrypt` compatible with only Node v10 HOT 3
- Unable to fund my Counter contract HOT 5
- Update versions of global dependencies
- Restructure documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-kit.