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

Issues with Integrating Xeokit in Frappe #719

Closed
satyajitghana opened this issue Sep 2, 2021 · 1 comment
Closed

Issues with Integrating Xeokit in Frappe #719

satyajitghana opened this issue Sep 2, 2021 · 1 comment

Comments

@satyajitghana
Copy link

I've been trying to use xeokit in frappe framework, but seems to be some issue importing xeokit,

To Reproduce
Steps to reproduce the behavior:

  1. import xeokit
import { Viewer, XKTLoaderPlugin, NavCubePlugin, TreeViewPlugin, FastNavPlugin } from "@xeokit/xeokit-sdk/dist/xeokit-sdk.min.es.js";

and this shows up

SyntaxError: Unexpected token (16:416) in /workspace/development/mileone-bench/apps/myapp/node_modules/@xeokit/xeokit-sdk/dist/xeokit-sdk.min.es.js

So i tried this instead (using non minified xeokit)

import { Viewer, XKTLoaderPlugin, NavCubePlugin, TreeViewPlugin, FastNavPlugin } from "@xeokit/xeokit-sdk/dist/xeokit-sdk.es.js";

which gave

SyntaxError: Can not use keyword 'await' outside an async function (90022:27) in /workspace/development/mileone-bench/apps/myapp/node_modules/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.js

frappe supports rollup and ES6

I'm not sure what could be the issue now

@satyajitghana
Copy link
Author

I was able to fix it by compiling xeokit with buble satyajitghana@3ed8859

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