pnp/docker-spfx

Error running gulp serve in 1.15.2

Sartor87 opened this issue · 2 comments

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.

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

Closing due to lack of response