Comments (7)
Ended up using this
facebook/create-react-app#12700 (comment)
somehow the cjs
file was still processed as a static file after building . Works perfectly on while using running the start script.
export default { webpack: { configure: config => ({ ...config, module: { ...config.module, rules: config.module.rules.map(rule => { if (rule.oneOf instanceof Array) { // eslint-disable-next-line no-param-reassign rule.oneOf[rule.oneOf.length - 1].exclude = [ /\.(js|mjs|jsx|cjs|ts|tsx)$/, /\.html$/, /\.json$/, ]; } return rule; }), }, }), }, };
from starknet-react.
It looks like something strange with get-starknet
or get-starknet-core
. Requires further investigation.
from starknet-react.
I tried to reproduce the issue with the following steps:
- create a new project with
npx create-starknet
, selecting the next.js template - update the
@starknet-react/core
version to '^0.17.2' - run
npm update
- check that the lock file contains the updated version of starknet react
- load the main page
npm run dev
and connect the wallet. TheWalletBar
component usesuseConnectors
so it should trigger this issue.
Unfortunately I did not get any error. Can you try to run the same steps as me and see if there is any issue?
from starknet-react.
Alright, I'll try that
from starknet-react.
Are you using create-react-app
by any chance? In that case, it could be this issue facebook/create-react-app#12021
If you attach a debugger in the browser, you should see something like this (notice the .cjs extension)
from starknet-react.
I was able to fix the issue my monkey patching the webpack config used by cra. Here is the commit that shows exactly how to do it
from starknet-react.
I was able to fix the issue my monkey patching the webpack config used by cra. Here is the commit that shows exactly how to do it
This fixed my issue. Thanks for helping with the problem.
from starknet-react.
Related Issues (20)
- Icon error when wallet is not installed HOT 4
- Support for sepolia network on rpc provider from starknet react core HOT 3
- Nethermind provider address changed HOT 2
- Expose useStarknet from the context HOT 5
- Add support for estimate fees and simulate transactions HOT 3
- Error on page demos/contract-read
- useStarkProfile() error on custom chains HOT 3
- Add optional chain argument to starknet.id hooks HOT 7
- How to identify dapp on connect? HOT 3
- Contract deploy does not works with braavos injected wallet. HOT 9
- Release V3 alpha/beta HOT 12
- [Type] useAccount.address should return an Address type HOT 12
- useEstimateFees returns "Invalid Params, missing non-optional param: simulation_flags" HOT 4
- useAccount with onConnect callback functions causes maximum update depth exceeded HOT 3
- Web GUI HOT 2
- Handle Absent Injected Wallet HOT 1
- Implement add token to wallet hook HOT 5
- Missing event watcher hook like useWatchContractEvent HOT 4
- bug: address & connector from useAccount are undefined HOT 10
- useStarkProfile - in Lastest Version 2.0.0 -next.7 HOT 1
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 starknet-react.