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

1.0.2: production builds fail at "missing ) after argument list" and "isProxied" #1607

Closed
jpchip opened this issue Jun 9, 2019 · 0 comments
Labels

Comments

@jpchip
Copy link

jpchip commented Jun 9, 2019

@stencil/core@1.0.2

I'm submitting a:

[X ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

When trying to load built versions of this component (ie. after running npm run build), I get two errors in the browser. First:

SyntaxError: missing ) after argument list
consoleError @ p-38ebb6b0.js:39
Promise.then (async)
loadModule @ p-38ebb6b0.js:48
initializeComponent @ p-38ebb6b0.js:1122
connectedCallback @ p-38ebb6b0.js:1215
connectedCallback @ p-38ebb6b0.js:1269
(anonymous) @ p-38ebb6b0.js:1295
(anonymous) @ p-38ebb6b0.js:1234
bootstrapLazy @ p-38ebb6b0.js:1234
(anonymous) @ syncarto.esm.js:4
Promise.then (async)
(anonymous) @ syncarto.esm.js:3

Then:

Uncaught (in promise) TypeError: Cannot read property 'isProxied' of undefined
    at initializeComponent (p-38ebb6b0.js:1123)
initializeComponent | @ | p-38ebb6b0.js:1123
  | async function (async) |   |  
  | initializeComponent | @ | p-38ebb6b0.js:1122
  | connectedCallback | @ | p-38ebb6b0.js:1215
  | connectedCallback | @ | p-38ebb6b0.js:1269
  | (anonymous) | @ | p-38ebb6b0.js:1295
  | (anonymous) | @ | p-38ebb6b0.js:1234
  | bootstrapLazy | @ | p-38ebb6b0.js:1234
  | (anonymous) | @ | syncarto.esm.js:4
  | Promise.then (async) |   |  
  | (anonymous) | @ | syncarto.esm.js:3

errors

Expected behavior:

I expect component to load correctly without errors. It DOES load correctly in dev mode (ie. when you run npm start).

map

Steps to reproduce:
I created a sample repo to reproduce the error:

https://github.com/EarthlingInteractive/syncarto-map-error

  1. check out code, run npm install, then npm start. Note browser opens with component rendering correctly (ie. should see map)
  2. Kill npm start.
  3. Run npm run build
  4. Install web server like http-server (ie. npm install -g http-server), start in base directory, load up the index.html in browser (eg. http://127.0.0.1:8080/index.html). Should see same thing as when running npm start, but instead encounter two errors shown above.

Other information:

Please let me know if I can provide any more information to help debug this.

Possibly related to: #1516

Though I think I have the latest versions of any stencil/ionic libraries installed already.

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

No branches or pull requests

1 participant