pnp / docker-spfx

Docker images for working with SharePoint Framework
https://hub.docker.com/r/m365pnp/spfx
MIT License
117 stars 49 forks source link

Error running gulp serve in 1.15.2 #98

Closed Sartor87 closed 1 year ago

Sartor87 commented 1 year ago

Describe the bug

Error occurs whenever I try to run gulp serve. This happens with a newly scaffolded project which is created from within the docker image.

'serve' errored after

To Reproduce

  1. Navigate to the project folder or an empty folder
  2. Ensure that all changes to the node packages and config files are made per documentation
  3. Run docker image with version 1.15.2

docker run -it --rm --name spfx-helloworld -v %cd%:/usr/app/spfx -p 4321:4321 -p 35729:35729 m365pnp/spfx:1.15.2

  1. Run gulp trust-dev-cert
  2. Run gulp serve

Error occurs image

Expected behavior The project should be run.

shurick81 commented 1 year ago

Hi @Sartor87, where did you get the node_modules directory for this solution? I guess it should be generated by running npm install and it is important that you run this command in the same image where you want to run gulp serve

waldekmastykarz commented 1 year ago

Closing due to lack of response