google-ar / three.ar.js

A helper three.js library for building AR web experiences that run in WebARonARKit and WebARonARCore
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
2.91k stars 365 forks source link

Module build failed: ReferenceError: Unknown plugin "transform-class-properties" #111

Closed pulkitjuneja closed 6 years ago

pulkitjuneja commented 6 years ago

I am getting this error when trying to install the library via webpack/npm.

jsantell commented 6 years ago

The real fix here is removing the non-standard Babel transform-class-properties -- it looks like your build setup is trying to transpile your node_modules. You could change your build to only allow Babel transformations in non-node_modules, or remove the .babelrc in node_modules/three.ar.js

pulkitjuneja commented 6 years ago

that worked 👍