# Uncaught SyntaxError: Unexpected token "import" - playcanvas-stable.min.js:6

**URL:** <https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656>\
**Category:** Help & Support\
**Tags:** editor\
**Created:** [January 26, 2024, 4:52pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656 "2024-01-26T16:52:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [January 26, 2024, 4:52pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/1 "2024-01-26T16:52:16Z")

</div>

Latests Editor versions all drop the same **engine error** on old TV (~2018)

Judging by the complaint about the **import** problem here, how can it be fixed? Maybe there are versions of the engine where no innovations were made here? Where do I get just this **playcanvas-stable.min.js** file of other engines?

```javascript
case 2:
							return n = function(t) {
								var e = new URL(window.location.href);
								return e.pathname = t, e.search = "", e.toString()
							}, t.next = 5, Promise.all([import("" + n(i)).then((function(t) {
								return twgsl(i.replace(".js", ".wasm"))
							})), import("" + n(e)).then((function(t) {
								return t.default()
							}))]);

```

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [January 26, 2024, 5:40pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/2 "2024-01-26T17:40:01Z")

</div>

You could get older version from here, for example: [https://code.playcanvas.com/playcanvas-1.27.4.min.js](https://code.playcanvas.com/playcanvas-1.27.4.min.js)

the possible version numbers can be found here: [Releases · playcanvas/engine · GitHub](https://github.com/playcanvas/engine/releases)

Just curious, if you can find out, what browser and version is that TV using?

---

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [January 26, 2024, 5:58pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/3 "2024-01-26T17:58:55Z")

</div>

Thanks, so I should not expect that it can be fixed in future versions?

I forgot to say that the project is empty, a starting example. Here - [https://playcanv.as/p/f6a62ee2/](https://playcanv.as/p/f6a62ee2/)

This is not a browser, but a web application with the **Chromium 53 web engine** , if you believe the tables from LG - [https://webostv.developer.lge.com/develop/specifications/web-api-and-web-engine](https://webostv.developer.lge.com/develop/specifications/web-api-and-web-engine)

---

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [January 26, 2024, 7:25pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/4 "2024-01-26T19:25:39Z")

</div>

After manually correcting this error, the loading screen appeared, but remained at 0 (no errors in the Console or Network)

Games from Explore that are on older engines have a visual problem, shader errors ( **asm.js and WebGL 1.0** )

This game works without any errors - [Pong - PLAYCANVAS](https://playcanv.as/p/i7a2Rlvy/)

I would like to support 2018-2019 TVs, but the problem with **eternal loading** is also relevant for a TV with **WebAssembly and WebGL 2.0** (probably Chromium M69) table from Samsung - [https://developer.samsung.com/smarttv/develop/specifications/web-engine-specifications.html](https://developer.samsung.com/smarttv/develop/specifications/web-engine-specifications.html)

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [January 29, 2024, 9:25am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/5 "2024-01-29T09:25:20Z")

</div>

I created an issue for this: [Investigate compatibility issues with very old brosers · Issue #6011 · playcanvas/engine · GitHub](https://github.com/playcanvas/engine/issues/6011)

---

<div class="post-metadata">

**Author:** ![Mark\_Lundin](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mark_lundin/32/9629_2.png) [@Mark\_Lundin](https://forum.playcanvas.com/u/Mark_Lundin)\
**Post date:** [January 29, 2024, 11:29am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/6 "2024-01-29T11:29:32Z")

</div>

Hey @robert.ua, the import code above is related to WebGPU instantiation, but that would only be supported on Chrome 113 and later, so I’m curious how you’re hitting that part. Can you share the error you’re getting?

---

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [January 29, 2024, 3:28pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/7 "2024-01-29T15:28:32Z")

</div>

LG TV  
But when the code is manually replaced so that there are no errors, there is an eternal download without errors in the console (Loading screen with 0%)

![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/f/d/fdce8469522803fc5ee43734452ac9a1c7f9279f.png)

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/8/984dedbd5fb07d13f19fbd190f074976666fd898.png)  
 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/7/97f2d6934e5b57cbc426de6987a95b05b581c3b5.jpeg)

---

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [February 1, 2024, 11:17pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/8 "2024-02-01T23:17:29Z")

</div>

“Import” problem appears **in versions of chrome up to 62** , but after manually fixing that I encountered the problem of **eternal loading even without errors in the console** , but when interacting with the canvas, errors are pouring in, maybe it will tell something?

Chrome versions from 63 to 72 have this loading problem without “import” problem.

Checked with [Browserling](https://www.browserling.com/browse/win10/chrome72/https://playcanv.as/p/h2DQ0cAy/)

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/1/a/1ae6262951bd290bff88a22e1593c8e6a6614d45.jpeg)

And when I move the mouse and click

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/a/b/ab53776c9b09a2650f5af1ded81a52c3b8c4350c.jpeg)

Target platforms are TVs, their web engines are outdated at the time of model release and cannot be updated in the future ([Samsung](https://developer.samsung.com/smarttv/develop/specifications/web-engine-specifications.html), [LG](https://webostv.developer.lge.com/develop/specifications/web-api-and-web-engine)).

The problem seems to have appeared in one of the PlayCanvas engine updates, because at least one game loaded and started - [Pong - PLAYCANVAS](https://playcanv.as/p/i7a2Rlvy/)

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [February 2, 2024, 8:50am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/9 "2024-02-02T08:50:11Z")

</div>

Can you please try and run this using debug version of the engine, the errors might be more useful. You’ll be also able to inspect the code in the debugger to see why this is failing.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 2, 2024, 9:37am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/10 "2024-02-02T09:37:28Z")

</div>

I had a quick look with the debug engine before I run out of gos on the emulator. Looks like it dies without error somewhere in `_initProgramLibrary` in app.base

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 12:05am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/11 "2024-02-03T00:05:11Z")

</div>

Got a Windows machine and downloaded Chromium 62. Looks like the first issue it hits is the use of `Object.fromEntries` that first hits here: [https://github.com/playcanvas/engine/blob/main/src/scene/materials/standard-material-options-builder.js#L70](https://github.com/playcanvas/engine/blob/main/src/scene/materials/standard-material-options-builder.js#L70)

This wasn’t added tile v73 ["fromEntries" | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/?search=fromEntries)

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 12:21am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/12 "2024-02-03T00:21:58Z")

</div>

Looks like polyfiling that was pretty easy.

I’ve got Flappy Bird project working in Chrome 62 [https://playcanvas.com/project/1187457/overview/bird-pre-62](https://playcanvas.com/project/1187457/overview/bird-pre-62)

- I added a version of the debug engine with the import for WebGPU removed.
- Disabled WebGL2 and clustered lighting in the project settings
- Removed audio as they didn’t want to decode (not sure why)
- Polyfilled Object.fromEntries

I also noticed that Ammo wouldn’t load due to some code in the ammo.wasm.js itself. That might be tricky to deal with depending on what APIs you need. If you need physics it may be easier to use Cannon.js instead [https://playcanvas.com/project/793652/overview/cannonesjs-physics-integration](https://playcanvas.com/project/793652/overview/cannonesjs-physics-integration)

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 12:39am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/13 "2024-02-03T00:39:22Z")

</div>

Just got Food Run working with sound using an older version of Ammo too [https://playcanvas.com/project/1187223/overview/food-run-pre-62](https://playcanvas.com/project/1187223/overview/food-run-pre-62)

✌

The older version of Ammo won’t support all features from the PlayCanvas Engine but should cover most of the base functionality.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 12:49am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/14 "2024-02-03T00:49:07Z")

</div>

Looks like the Object.fromEntires polyfill I’m using is not perfect and this may be better instead: [index.js · master · Alfredo Mungo / js-polyfill-object.fromentries · GitLab](https://gitlab.com/moongoal/js-polyfill-object.fromentries/-/blob/master/index.js?ref_type=heads)

---

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [February 3, 2024, 1:02am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/15 "2024-02-03T01:02:45Z")

</div>

Did I understand correctly that all this can be fixed with updates from PlayCanvas, if so - how often can updates of such a plan theoretically come out? Or will I still need to modify the build source files in the future?

Thanks a lot for the already provided quick and useful answers 😉

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 1:10am UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/16 "2024-02-03T01:10:37Z")

</div>

I can’t speak for the team. I can imagine that supporting 6 year old browsers is not the highest priority for them so this may be fixed over time (if ever)

Realistically, in your position I would keep a fork of the engine that has your modifications in it including the polyfill, rely on using older versions of Ammo and disabling WebGL2.

It maybe possible to monkey patch or stub the functions that are causing issues thinking about it. I may spend sometime trying that tomorrow

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 3:16pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/17 "2024-02-03T15:16:15Z")

</div>

Played around with it a bit more. I’ve created a patch/polyfill file that correct does Object.fromEntries and now WebGL2 works. It also adds a stub for the import function.

This means that for now, you don’t have to build a custom version of the engine. You can use the one that the build ships with.

I also added a polyfill for promises so that the current version of Ammo used by the Editor can load too.

With this, you should be fine 🤞 for PlayCanvas to run on those TVs with minimal hacks.

My Food Run project fork has been updated: [https://playcanvas.com/project/1187223/overview/food-run-pre-62](https://playcanvas.com/project/1187223/overview/food-run-pre-62)

Patch file to be loaded before the engine:

```javascript
/*
    Copyright 2018 Alfredo Mungo <alfredo.mungo@protonmail.ch>

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to
    deal in the Software without restriction, including without limitation the
    rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
    sell copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
    IN THE SOFTWARE.
*/
if (!Object.fromEntries) {
  Object.defineProperty(Object, 'fromEntries', {
    value(entries) {
      if (!entries || !entries[Symbol.iterator]) { throw new Error('Object.fromEntries() requires a single iterable argument'); }

      const o = {};

      Object.keys(entries).forEach((key) => {
        const [k, v] = entries[key];

        o[k] = v;
      });

      return o;
    },
  });
}

if (!window.import) {
  window.import = function() {}
  console.log('Stubbing out import function');
}

// Copyright (c) 2014 Taylor Hakes
// Copyright (c) 2014 Forbes Lindesay

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function t(e){return new this(function(t,n){function r(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var f=n.then;if("function"==typeof f)return void f.call(n,function(t){r(e,t)},function(n){o[e]={status:"rejected",reason:n},0==--i&&t(o)})}o[e]={status:"fulfilled",value:n},0==--i&&t(o)}if(!e||"undefined"==typeof e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);for(var i=o.length,f=0;o.length>f;f++)r(f,o[f])})}function n(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function r(e){var t=this;return new t(function(r,o){if(!e||"undefined"==typeof e.length)return o(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return o();for(var f=[],u=0;i.length>u;u++)try{t.resolve(i[u]).then(r)["catch"](function(e){f.push(e),f.length===i.length&&o(new n(f,"All promises were rejected"))})}catch(c){o(c)}})}function o(e){return!(!e||"undefined"==typeof e.length)}function i(){}function f(e){if(!(this instanceof f))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],s(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,f._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void a(t.promise,o)}c(t.promise,r)}else(1===e._state?c:a)(t.promise,e._value)})):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof f)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void s(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){a(e,r)}}function a(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&f._immediateFn(function(){e._handled||f._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;n>t;t++)u(e,e._deferreds[t]);e._deferreds=null}function s(e,t){var n=!1;try{e(function(e){n||(n=!0,c(t,e))},function(e){n||(n=!0,a(t,e))})}catch(r){if(n)return;n=!0,a(t,r)}}n.prototype=Error.prototype;var d=setTimeout;f.prototype["catch"]=function(e){return this.then(null,e)},f.prototype.then=function(e,t){var n=new this.constructor(i);return u(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},f.prototype["finally"]=e,f.all=function(e){return new f(function(t,n){function r(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var u=o.then;if("function"==typeof u)return void u.call(o,function(t){r(e,t)},n)}i[e]=o,0==--f&&t(i)}catch(c){n(c)}}if(!o(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,u=0;i.length>u;u++)r(u,i[u])})},f.any=r,f.allSettled=t,f.resolve=function(e){return e&&"object"==typeof e&&e.constructor===f?e:new f(function(t){t(e)})},f.reject=function(e){return new f(function(t,n){n(e)})},f.race=function(e){return new f(function(t,n){if(!o(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=e.length;i>r;r++)f.resolve(e[r]).then(t,n)})},f._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){d(e,0)},f._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var p=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"function"!=typeof p.Promise?p.Promise=f:(p.Promise.prototype["finally"]||(p.Promise.prototype["finally"]=e),p.Promise.allSettled||(p.Promise.allSettled=t),p.Promise.any||(p.Promise.any=r))});

```

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/0/f/0f7393d96dc5a1863c35b38078a91933c6dd9dae.jpeg)

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 3:44pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/18 "2024-02-03T15:44:33Z")

</div>

Ah crap, turns out Chrome 63 loads the project fine but not Chrome 62 🤔

---

<div class="post-metadata">

**Author:** ![robert.ua](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/robert.ua/32/29748_2.png) [@robert.ua](https://forum.playcanvas.com/u/robert.ua)\
**Post date:** [February 3, 2024, 3:48pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/19 "2024-02-03T15:48:57Z")

</div>

Yes, here are the logs from the TV

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/d/f/df240ec20bd10579ec1991b517b6c0120e463c9a.png)

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 3, 2024, 3:55pm UTC](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656/20 "2024-02-03T15:55:25Z")

</div>

Hmm, looks like pre v62, you can’t stub out the import statement / function 🤔 It’s back to using a custom version of the engine then unfortunately for now

[Next page](https://forum.playcanvas.com/t/uncaught-syntaxerror-unexpected-token-import-playcanvas-stable-min-js-6/34656.md?page=2)
