Ethereum Boilerplate Questions

I think you just need to fetch upstream from the original repo to your forked repo~

So where can i get the repo to fork?

maybe from https://github.com/ethereum-boilerplate/

There are lots of template there, i don’t know which one is the fixed version

this is the demo i found in the git repo and the NFT tab is not displaying anything

https://ethereum-boilerplate.github.io/nftBalance

Hi there, when I use this boilerplate and configure the SDk etc.

https://github.com/ethereum-boilerplate/ethereum-boilerplate.git…
I get the followingfollow error while compiling.
./src/components/Wallet/components/Transfer.jsx
Line 121:5: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
Line 122:7: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
Line 123:9: ‘React’ must be in scope when using JSX react/react-in-jsx-scope
Line 124:11: ‘React’ must be in scope when using JSX react/react-in-jsx-scope

Yes, Similar thing was running in My Mind. As I need to launch my ICO for BNB Token. Also does the Moralis has a Component for BNB transfers like Erc20 transfers.

Hi, great boilerplate and works fine on local host/development. However, the build version doesn’t work both locally as on Netlify. After running yarn build and serve the build I only see a white screen and get the following error in the console:

2.14cddacb.chunk.js:1 Uncaught SyntaxError: Unexpected token ‘<’
main.9e3e64e8.chunk.js:1 Uncaught SyntaxError: Unexpected token ‘<’

Anyone an idea how to solve this?

1 Like

did you try to run the build version too in your local machine? also did you add the appId and server url in the environment variables in netlify?

Yes added environment variables on netlify and run the build version on the local machine. Both don’t work. Seems a MIME problem. Not been able to resolve it yet, so all help is appriciated.

Refused to apply style from ‘http://127.0.0.1:5500/ethereum-boilerplate/static/css/main.d16333b5.chunk.css.map’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Help? Anything? …?

Yes added environment variables on netlify and run the build version on the local machine. Both don’t work. Seems a MIME problem. Not been able to resolve it yet, so all help is appriciated.

Refused to apply style from ‘http://127.0.0.1:5500/ethereum-boilerplate/static/css/main.d16333b5.chunk.css.map’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

hmmm strange why is it localhost:5500? coz in React we just usually use localhost:3000

I used Live Server to serve the build and uses localhost:5500

I don’t think I’ve ever used port 5500 for React apps even in production, maybe can you elaborate more the steps you take to deploy your app? the more detail the better :raised_hands:

getting the same problem if I use serve

The boilerplate runs fine when using yarn start. For production I run yarn run build. After the build is finished I serve the index.html from the build directory in de ethereum-boilerplate directory.

This is the repo I use for the Hackathon

okay thanks let me take a look into it~

okay @Coups, just tried it out :raised_hands: seems like you are right it gets empty white page, but after I removed the homepage field in the package.json seems like it is working and you can try it out~