Ethereum Boilerplate Questions

How would I change the number of columns on the NFTBalance display to 3 across rather than 4?

Hi @unlabeled

Since our boilerplate was built using Ant design you can find all settings there https://ant.design/components/table/

Check the pagination and size

where can i get the new version?

Hi. I had a project working fine until for some reason it started showing Web3Api not initialized, run Moralis.start() first. I modified the index.js to look like the newer one on GitHub but then it started showing useMoralisDapp must be used within a MoralisDappProvider on nearly any component.

1 Like

how do i get the fixed new version? @cryptokid @Yomoo

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: