Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

This operation is not yet supported on abstract value __IntrospectionError #521

Closed
obenjiro opened this issue May 3, 2017 · 4 comments
Closed

Comments

@obenjiro
Copy link

obenjiro commented May 3, 2017

Trying to use prepack for angular 4 app. Using angular/cli. Simple hello world. I can provide full source if necessary.

This operation is not yet supported on abstract value
__IntrospectionError
    at concat.12312312312.bundle.js:2622:67
    at R3AP (unknown)
    at call (native)
    at r (concat.12312312312.bundle.js:9:12)
    at Ds5P (concat.12312312312.bundle.js:460:11)
    at call (native)
    at r (concat.12312312312.bundle.js:9:12)
    at CVR+ (concat.12312312312.bundle.js:354:13)
    at call (native)
    at r (concat.12312312312.bundle.js:9:12)
    at 2tFN (concat.12312312312.bundle.js:192:5)
    at call (native)
    at r (concat.12312312312.bundle.js:9:12)
    at XS25 (concat.12312312312.bundle.js:900:13)
    at call (native)
    at r (concat.12312312312.bundle.js:9:12)
    at 1 (concat.12312312312.bundle.js:132:17)
    at call (native)
    at r (concat.12312312312.bundle.js:9:12)
    at concat.12312312312.bundle.js:17:42
    at concat.12312312312.bundle.js:66:1
  ulTY: function (t, e) {
    var n = 0,
      r = Math.random();
    t.exports = function (t) {
      return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + r).toString(36))   <-- HERE 2622
    }
  },
@sebmarkbage
Copy link
Contributor

That looks like it is use Math.random. You will need to provide the option mathRandomSeed to let Prepack know that it is ok to encode random values into the output.

https://github.com/facebook/prepack/blob/master/src/options.js#L20

@obenjiro
Copy link
Author

obenjiro commented May 3, 2017

@sebmarkbage Tnx a lot. mathRandomSeed helps

PS: maybe you can help, I have other problem right now (maybe i'm missing something again)

XMLHttpRequest is not defined

@sebmarkbage
Copy link
Contributor

That's because the full DOM API isn't modeled yet. You'll have to manually stub out all the DOM APIs that you rely on. Prepack doesn't know about those things automatically yet. Follow #24 to see when that's implemented.

@gre
Copy link

gre commented May 4, 2017

I've tried the mathRandomSeed and still get the same error. Would be great if the error message was telling which abstract value it failed on (like saying it's Math.random)

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

No branches or pull requests

3 participants