-
Notifications
You must be signed in to change notification settings - Fork 87
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
Javascript error in Bimvie.ws: expected expression, got keyword 'import' #97
Comments
Which browser are you using? |
I was initially using Chrome. But tried it in the newest version of Firefox and on Safari on a Mac too. |
I confirm the issue in Chrome 62 on Windows 10 64-bits with bimserver (and thus the plugin) running on openjdk 1.8.0_151. |
I just tried it on another computer where I tried both Firefox Quantum 57.0 and Chrome Version 62.0.3202.94. |
我也是,我也是,求帮助 |
I was a bit enthusiastic using the dynamic loading feature, I'll try and come up with a fix that uses static loading (but still uses ES6 modules) |
Okay, well, it's always nice to use great new language features 👍 |
Alright that's fixed, when you install a new 1.5.92 version of BIMserver (unchanged release), it will install newer versions of the JS API and BIMvie.ws that will work on Chrome 62. |
Thanks for the quick fix! Sadly I still get a "Loading BIMviews..." and in the Chrome console I get a "Uncaught SyntaxError: Unexpected token import". |
Thanks Ruben! I noticed your changes in BIMviews repo on github, and redownloaded the bimserver war file and did a fresh install, but the same issues are still there (404 - Not Found for apps/bimsurfer/ and showing "Loading BIMviews..." with this error in console: I am using Google Chrome Version 62.0.3202.94 (Official Build) (64-bit) on Windows 7. Browser cache is cleaned before reloading. Here is the list of plugin installation logs: Installing plugins...
|
I put the Google browser to upgrade to the 62 or not |
Trouble you to update the, or tell me the latest stable version. |
Alright, sorry for the hassle. The newest builds of BIMvie.ws and the JavaScript API will work again, it was just a bit too early for using the EcmaScript 6 module system so using a transpiled version for now. |
Hello Ruben, after updating to the latest version (commit aa9e3ef), this error occurs again. I use Chrome (version 62.0.3202.94) on Windows 10. |
For the record here, this error still occurs, I use: It is trying to load: Which is actually: Also the code could use configuration and co to take care of the paths of the different libraries and co, that would avoid that issue to happen again and make it easier to maintain :) Maybe an important note, I use *:8080/BIMserver/apps/bimserverjavascriptapi/ to see where is everything exposed from a JS files pov. And it seems to work and all files are accessible. That suggests the issue is not in the javascriptapi but bimvie.ws (the code around the suspected commit seems to be the gulty part). update. my bad, just realized I was not using latest. Not useless effort with the proxy, added some cache :) update #2: same error with latest (.120), even worst, most plugins do not seem to be installed either (the index page does not show them as it used to do in the previous version) |
For other having the issue, I am simply putting a proxy in front of BIMserver instance and add rewrite rules for the various version of the bugs as I am not inclined to custom monkey patch each version of it, and easy to add new rules for future similar bugs :) `server {
}`
|
I have set up a BIMServer v. 1.5.92 and run through the setup.
I can access the Console and create projects and checkin ifc-files easily.
But when it comes to launching bimvie.ws I get the following error message in the browser console:
expected expression, got keyword 'import'
The error is at the following line bimviews:113 if that helps.
The text was updated successfully, but these errors were encountered: