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

[PHP-WASM Node] Path to the PHP js file is missing a slash before jspi/asyncify #2129

Open
bgrgicak opened this issue Jan 16, 2025 · 0 comments · May be fixed by Automattic/studio#808
Open
Labels
[Package][@php-wasm] Node [Type] Bug An existing feature does not function as intended

Comments

@bgrgicak
Copy link
Collaborator

I wanted to update Studio to use the latest version of Playground and PHP-wasm packages (1.0.21), but after the package update, Studio wasn't able to start sites anymore.

Starting Playground failed with Error: ENOENT: no such file or directory, open '/Users/bero/Projects/studio/.webpack/mainasyncify/8_2_10/php_8_2.wasm'. The path it failed to open is incorrect because of .webpack/mainasyncify/8_2_10/, it's missing a slash between main and asyncify.

The root cause of this issue seems to be in the dirname plugin where it incorrectly assumes that _dirname has a trailing slash.

@bgrgicak bgrgicak added [Type] Bug An existing feature does not function as intended [Package][@php-wasm] Node labels Jan 16, 2025
@bgrgicak bgrgicak moved this from Inbox to Backlog in Playground Board Jan 16, 2025
bgrgicak added a commit to Automattic/studio that referenced this issue Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@php-wasm] Node [Type] Bug An existing feature does not function as intended
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

1 participant