-
Notifications
You must be signed in to change notification settings - Fork 32
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
Better error for performance
access at Wizer time
#153
Comments
Check that you're definitely using the latest ComponentizeJS in your node_modules folder verifying the version. |
That was the first thing I checked. Here is a debug build which prints debug info. I build it with
|
Are you trying to use |
i.e. compile time is not the time to do timing stuff. |
I have no customization like that. Happy to share my screen. |
You're writing something like this: // this is a wizer time use of the performance global - NOT ALLOWED
const start = performance.now();
export const run = {
run () {
console.log(performance.now() - start);
}
}; when you should be writing this: export const run = {
run () {
const start = performance.now();
console.log(performance.now() - start);
}
}; |
Here are the steps to reproduce.
Following those steps:
|
So looking at your JS code, The bug here is that we don't throw a better error - the error should be:
The fix is to wrap all these Hope that helps. |
performance
access at Wizer time
It did! I'm able to disable |
Great to hear, we should definitely improve the error though. |
I still get the same error with jco 1.7.1 that uses 0.13.1 of this project. #150 does not set timeOrigin. The change from cb4d73a#diff-882dd8ad95be11b373fd2693a697c12144f8b51d4605a35cd678a0d2e5b4a09dR354 makes it work for me locally.
The text was updated successfully, but these errors were encountered: