Open scdataco opened 1 year ago
add this to your babel.config.js file:
plugins: [
...
'@babel/plugin-proposal-private-property-in-object',
...
]
I also installed these 3 packages:
"@babel/eslint-parser": "^7.24.7",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
Delete your node_modules
folder and your yarn.lock
or package.lock
files
Run yarn install (or npm install) again
I followed the steps to create a new extension but when I got to the
yarn develop
step I got the following error:I was able to resolve this by installing the
@babel/plugin-proposal-private-methods
package, after whichyarn develop
seems to be working fine:I'm quite a beginner with modern JS but it seems that package should have been installed by the create extension process? Thanks!