chiefmyron / phpunit-test-workbench

An extension to integrate PHPUnit with the native Test Explorer functionality within VS Code. Zero configuration required for common environment setups.
https://marketplace.visualstudio.com/items?itemName=chiefmyron.phpunit-test-workbench
MIT License
5 stars 2 forks source link

Extension fails to load, showing error "Activating extension failed: self is not defined" #9

Closed chiefmyron closed 2 years ago

chiefmyron commented 2 years ago

After building the extension using webpack, the extension fails to load on a local or remote server, with the following error being displayed:

"Activating extension failed: self is not defined"

Building the extension using esbuild does not result in the same behaviour

chiefmyron commented 2 years ago

Short term fix can be to change the 'php-parser' dist library to correctly target 'node' rather than 'web'. Need to figure out the long term fix, to be tracked under #8.