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
Hi, I installed Argon js through npm and imported just like in the guide and when trying to initialize it, I get following error:
rollup v0.57.1
bundles ./src/EP.js → dist/ar.bundle.js...
(!) Missing exports https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
src/ARApp.js
init is not exported by node_modules/@argonjs/argon/dist/argon.core.js
17: var asRt = window.innerWidth / window.innerHeight;
18: console.log('');
19: var app = Argon.init();
^
20: app.context.setDefaultReferenceFrame(app.context.localOriginEastUpSouth);
I also did another test by not initializing anything but just importing and Argon breaks, I get these error:
argon.core.js:4 Uncaught TypeError: Cannot read property 'require' of undefined
at argon.core.js:4
at argon.core.js:1
at argon.core.js:28487
at argon.core.js:1
at argon.core.js:28482
at createCommonjsModule (GameplayHud.js:33)
at browser.js:222
at EntryPoint.js:141
As if argon doesn't run at all.
So is Argon still not compatible with npm? Has to do it manually? I wanna avoid from doubling up by three js since my three js works great through npm. And if I add Argon manually I would have to add another three js which doubles up my three js LOL
The text was updated successfully, but these errors were encountered:
Hi, I installed Argon js through npm and imported just like in the guide and when trying to initialize it, I get following error:
rollup v0.57.1
bundles ./src/EP.js → dist/ar.bundle.js...
(!) Missing exports
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
src/ARApp.js
init is not exported by node_modules/@argonjs/argon/dist/argon.core.js
17: var asRt = window.innerWidth / window.innerHeight;
18: console.log('');
19: var app = Argon.init();
^
20: app.context.setDefaultReferenceFrame(app.context.localOriginEastUpSouth);
I also did another test by not initializing anything but just importing and Argon breaks, I get these error:
argon.core.js:4 Uncaught TypeError: Cannot read property 'require' of undefined
at argon.core.js:4
at argon.core.js:1
at argon.core.js:28487
at argon.core.js:1
at argon.core.js:28482
at createCommonjsModule (GameplayHud.js:33)
at browser.js:222
at EntryPoint.js:141
As if argon doesn't run at all.
So is Argon still not compatible with npm? Has to do it manually? I wanna avoid from doubling up by three js since my three js works great through npm. And if I add Argon manually I would have to add another three js which doubles up my three js LOL
The text was updated successfully, but these errors were encountered: