Testcafe-hammerhead: An `import` context is lost when it is used in the evaluated code

Created on 27 Aug 2019  路  13Comments  路  Source: DevExpress/testcafe-hammerhead

An imported url will be resolved relative a page url instead of a script url.

var f = new Function('w', 'return import(w);');
f('./123.js')
level 2 Auto-locked script processing bug

Most helpful comment

Our developers will look into this issue in one of the next sprints. You will be automatically notified once we make progress. Your patience is greatly appreciated.

All 13 comments

Hi, we are using testcafe together with stencil and are affected by this bug. We don't want to migrate away from it and cannot migrate away from stencil. Any news would be appreciated!

@Davor111

Hello,

We cannot give you any estimate as to when this issue will be fixed. Stay tuned for our updates in this thread.

+1 here. Stencil build outputs files with dynamic imports.

Hello, we are in limbo as well, may we please get an update, thank you for the help.

Our developers will look into this issue in one of the next sprints. You will be automatically notified once we make progress. Your patience is greatly appreciated.

Thanks @miherlosev , appreciate it.

Thanks for picking this up in sprint 44.

Thanks @LavrovArtem @miherlosev

@miherlosev Problem still appear in my repro repository with last version 1.6.1 : https://github.com/vogloblinsky/testcafe-stencil
It just a simple html page loading a Stencil Web Component.
The page runs perfectly alone, but none inside testcafe/hammerhead.


@vogloblinsky, the last version 1.6.1 doesn't contain this fix.

@LavrovArtem Thanks for fixing this issue, when are we planning to bump the version to include this fix, looking forward to, thank you

I think that we will bump the version next week.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

Was this page helpful?
0 / 5 - 0 ratings