Skip to content
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

Argon Import through npm Not working? #95

Open
farhanRIT opened this issue Feb 18, 2019 · 0 comments
Open

Argon Import through npm Not working? #95

farhanRIT opened this issue Feb 18, 2019 · 0 comments

Comments

@farhanRIT
Copy link

farhanRIT commented Feb 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant