api-management-developer-portal
api-management-developer-portal copied to clipboard
Error building developer portal locally
Bug description
Since a few days back I'm getting an error when trying to run the developer portal locally. It seems to be related to paperbits package but no clue why or when it actually started to happen:
Reproduction steps
- Pull latest version from master branch
- Remove node_modules and dist folders (if they were there).
- Update config files to point to my instance
- Run
npm install
andnpm run publish
(it also happens withnpm start
) - See error attached
Expected behavior
The build works correctly
Is your portal managed or self-hosted?
Managed, but I don't think it's relevant here as my issue is locally.
@i02coroj, thank you for opening this issue. We will triage it within the next few business days.
@i02coroj, hmm, I can't reproduce this. Can you please try the following:
-
git clean -xdf
- cleanup files not in the repo. -
npm i
- install packages again -
npm start
- start.
There is another issue I just discovered though, so I'm reverting the last upgrade for now in #1911.
@i02coroj, we need more information before we start working on this issue. If you prefer to share it in private, please send us an email to [email protected] with the issue number in its subject.
After pulling latest version with the revert everything is working ok again both locally and in DevOps builds. So I think there's definitely a breaking change in that new version of the paperbits package.
Thanks for the fix. Feel free to close the ticket. Cheers.