I recently updated the playcanvas node module from 1.62.2 to 1.70.2.
When I start the game it displays the following error
WARNING in ./node_modules/playcanvas/build/playcanvas/src/framework/handlers/script.js 99:2-64
Critical dependency: the request of a dependency is an expression
Based on searching for this issue it seems that webpack doesn’t like the dynamic import on line 99 of
node_modules/playcanvas/build/playcanvas/src/framework/handlers/script.js
import(/* @vite-ignore */importUrl.toString()).then(module => {
I’ve tried adding ignoreParse to the module in my webpack config file but it doesn’t seem to help.