api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Error building developer portal locally

Open i02coroj opened this issue 2 years ago • 5 comments

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:

image

Reproduction steps

  1. Pull latest version from master branch
  2. Remove node_modules and dist folders (if they were there).
  3. Update config files to point to my instance
  4. Run npm install and npm run publish (it also happens with npm start)
  5. 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 avatar Aug 16 '22 11:08 i02coroj

@i02coroj, thank you for opening this issue. We will triage it within the next few business days.

msftbot[bot] avatar Aug 16 '22 11:08 msftbot[bot]

@i02coroj, hmm, I can't reproduce this. Can you please try the following:

  1. git clean -xdf - cleanup files not in the repo.
  2. npm i - install packages again
  3. npm start - start.

azaslonov avatar Aug 16 '22 19:08 azaslonov

There is another issue I just discovered though, so I'm reverting the last upgrade for now in #1911.

azaslonov avatar Aug 16 '22 19:08 azaslonov

@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.

msftbot[bot] avatar Aug 16 '22 19:08 msftbot[bot]

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.

i02coroj avatar Aug 17 '22 09:08 i02coroj