Skip to content

Argon Import through npm Not working? #95

@farhanRIT

Description

@farhanRIT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions