kalwalt / ARnft-ES6-react

A testing repository for ARnft in a React app.
https://kalwalt.github.io/ARnft-ES6-react/
6 stars 4 forks source link

arnft fails to compile (0.13.1 version) #29

Closed kalwalt closed 2 years ago

kalwalt commented 2 years ago

After upgrading to arnft 0.13.1 version, the app fail to start if you run yarn start command i get:

Failed to compile.

./node_modules/@webarkit/ar-nft/dist/ARnft.js 144:24
Module parse failed: Unexpected token (144:24)
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.
| 
|         class E {
>           canvas_process;
|           context_process;
|           _video;

this happens also for 0.13.0 version, i will open an issue on ARnft tracker issue.

kalwalt commented 2 years ago

testing branch: https://github.com/kalwalt/ARnft-ES6-react/tree/testing-arnft-0.13.1

kalwalt commented 2 years ago

It seems that deleting the yarn-lock and node_modules folder, reinstalling modules with yarn and making changes in https://github.com/kalwalt/ARnft-ES6-react/commit/9116ab9324245ffefcdb74d9ff4c105b3f54f9b7 make the project compile. I found this article that helped me https://stackoverflow.com/questions/67543182/react-babel-you-may-need-an-additional-loader-to-handle-the-results-of-these

kalwalt commented 2 years ago

I deployed and merged the new code.