You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the new release of react-scripts version 5 the javascript documentation is outdated and does not work anymore. The v5 excludes support for some node features and polyfills that were available in lower versions, i manage to overcome this first issue by installing (inside the freshly created app) react-app-rewired with the command:
yarn add react-app-rewired
followed by the the installation of all needed packages:
and inside package.json modify start from react-scripts start to react-app-rewired start. In this way it starts with no error, but it raise a warning sayng:
WARNING in ./node_modules/zenroom/dist/module/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/matteo/src/zenroom-react-test/node_modules/zenroom/src/index.ts' file: Error: ENOENT: no such file or directory, open '/home/matteo/src/zenroom-react-test/node_modules/zenroom/src/index.ts'
And the browser page will be white without printing the {"hello": "world"}, i have no clue on how to solve the last issue 😖
This is outdated: https://dev.zenroom.org/#/pages/zenroom-javascript3
This is updated: https://medium.com/think-do-tank/make-with-zencode-and-javascript-aka-easy-crypto-and-human-readable-smart-contracts-in-react-pt-ec91be04fd4d
The text was updated successfully, but these errors were encountered: