Closed gonzamontiel closed 2 years ago
So far I failed to update the dependencies to the latest version to fix this issue. When you update them you encounter the error:
./node_modules/@polkadot/api/packageInfo.js 6:27
Module parse failed: Unexpected token (6:27)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| export var packageInfo = {
| name: '@polkadot/api',
> path: new URL('.', import.meta.url).pathname,
| type: 'esm',
| version: '7.7.1'
Since we are using create-react-app
and it is using webpack v4, I tried overriding the config with craco
according to what is mentioned in the FAQ.
After fixing this issue there is another problem which is also mentioned in this issue ticket. I was not yet able to solve it.
I uploaded my WIP to this branch.
From @ebma
Investigate this and fix interaction with AMM.