TypeError: Cannot read properties of undefined (reading 'split') #1906
-
I am having a weird problem with a test app when running a production build and deploying to a node web app hosted in Azure. I am getting the following error:
I don't get this issue when running the app locally in dev. I have also tried running the build locally and then deploying the artefacts to a locally hosted docker container and it works fine. It's just when I deploy the site to the node instance in Azure that I get the above error. I am using Circle CI to perform the Azure deployment and this runs npm install as one of the deployment steps so are there any platform variances that could be causing this? I have tried some of the steps outlined on the page https://vike.dev/broken-npm-package but I wasn't able to resolve the issue. Any idea what could be causing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's quite unexpected indeed. Are you using's Preact's React compat layer? Can you publish a reproduction? Alternatively, dig into why |
Beta Was this translation helpful? Give feedback.
I used a different container in Circle CI for the deployment and now it all works great. Not sure what the issue was though!