Forum Discussion
Americo Perez
Feb 12, 2018Iron Contributor
Strange behaviour when developing SP framework apps
Hi,
I am just starting with SP framework and for me everything is right, for others in my same office not.
This is the strange part: we all created the dev. environmen following the same steps that are in the Microsoft's SP framework page.
When I run the app with gulp serve, the app run at once, but for others not. They need to update serve.json and change from this:
{ "$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json", "port": 4321, "https": true, "initialPage": "https://localhost:5432/workbench", "api": { "port": 5432, "entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" } }
to this:
{ "$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json", "port": 4321, "https": true, "initialPage": "https://localhost:4321/temp/workbench.html", "api": { "port": 4321, "entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" } }
The updated fields are: initialPage and api.port
why is this happenning in theirs computers?
Regards
Americo
I suggest checking that they are using the same version of NodeJS, and they have installed the same version of the Yeoman generator.
I suggest checking that they are using the same version of NodeJS, and they have installed the same version of the Yeoman generator.
- Americo PerezIron Contributor
Thanks for your answer.
I will check this info with them tomorrow and see that we all are in the same page.
Best regards
Americo