-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARnft fails to compile when imported as a npm package (version 0.13.1) #256
Comments
Is there a workaround for this? Was the npm package built incorrectly? |
Hi @andreyrd i solved with this commit (note: i didn't change anything inside ARnft). Read also the stackoverflow article linked in the ARnft-ES6-react issue. If i remember well i deleted the node_modules folder and yarn-lock file, made the changes in package.json ,reinstalled the packages with yarn and then ARnft-ES6-react worked again in dev and build mode. Tell me if this helped you. |
Those don't fix it for me. When I import the unminified version using: I get a clearer error:
which leads me to believe I am running into this webpack error: But I can't upgrade to that because they only fixed in version 5, and I'm still on Vue 2 which relies on Webpack 4. |
I fixed it by adding babel to my project. My webpack rule makes sure that only this module gets processed through babel: {
test: /\.js$/,
loader: 'babel-loader',
exclude: file => (
/node_modules\/(?!(@webarkit\/ar-nft)\/).*/.test(file) &&
!/\.vue\.js/.test(file)
)
} |
Good to know @andreyrd! i will test on my https://github.com/kalwalt/visualARPoetry |
Fwiw, while this helped it build, it still doesn't work. |
Vue CLI has a built in way of adding that rule that is much clearer than writing regex. Add to vue.config.js:
|
Nice to know! Does it solve the issue? |
Now I am running into this Issue :) webarkit/ARnft-threejs#8 |
So did you solved? Let's continue into that issue webarkit/ARnft-threejs#8 |
Never mind, turns out I'm an idiot - the video itself I was testing does not actually change. It's a still slide the whole video 🤦 |
Don't worry you are not alone! We make errors and we learn from them. May we close this issue? |
I think so, yes. |
Before closing It, i will test also in my project to confirm that it is solved. |
In my case |
If you import 0.13.1 in a create React project (see kalwalt/ARnft-ES6-react#29) and you run yarn start the project fails with this message:
the 0.13.0 is also affected but not previous version 0.12.2
The text was updated successfully, but these errors were encountered: