-
Notifications
You must be signed in to change notification settings - Fork 123
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
Run Azure Digital Twins Explorer locally: npm run start getting failed with 'ERR_PACKAGE_PATH_NOT_EXPORTED'. #233
Comments
The exact same error happens for the Docker version. The docker build command executes without fail. The docker run stops with exception. |
same error here with the Docker version |
Did you run This may be an issue with spaces being present in the project path - From the README:
|
I'm trying to run Azure Digital Twins Explorer with Docker.
node:internal/modules/cjs/loader:488 Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /usr/src/app/client/node_modules/postcss-safe-parser/node_modules/postcss/package.json Node.js v17.2.0 |
Hello! Any update on this issue? We have a Microsoft Cloud Workshops lab that uses this. Thank you!! :) |
I encountered the ERR_PACKAGE_PATH_NOT_EXPORTED issue when running the docker version. When I ran on my PC I got a 'FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory' error. |
Same for me: Docker on Mac Anyone any luck? |
I recommend installing from one of the releases. I was able to get the ADT Explorer running in standalone that way. I didn't try the docker deployment. |
Unfortunately still not working for me.
Was there a release in particular you had any luck with? Cheers |
I downloaded the top zip file #235622. Note that I did not try to create the docker container. Instead I ran the node file on my PC. |
@terrymandin If the build is failing with a heap out of memory error, can you try to update the build script in the
If the
|
Another thing to try is to delete the |
Thanks @ccrowley96 and @terrymandin. Just in case anyone else reading this and getting similar issues for Docker I think the main issue is Node v17. I went back and installed v16 and it seems to work. (On my terminal with node -v it’s working with v16.13.1 ) Steps that I did to fix. Following the Docker instructions for digital-twins-explorer
Change the lines
To
And I commented out the update lines below so it reads:
|
this pins node to the LTS-slim so it will at least work and get updates address Azure-Samples#233
I had the same issue: It is not working with Node.js v17, but is working fine with Node.js v14 |
Step-5 Getting Started -> Running digital-twins-explorer locally, npm run start getting failed due to 'ERR_PACKAGE_PATH_NOT_EXPORTED'. After following the steps unable to see the browser opened with the app.
Please find the below screenshot for your reference:
The text was updated successfully, but these errors were encountered: