https://serverless-stack.com/ logo
#help
Title
# help
b

Ben Ledbury

11/10/2021, 9:19 PM
Hey, just wanted to point out a very frustrating issue with the documentation on https://seed.run/docs/private-npm-modules.html. There are invisible hidden characters in the text that's copied which caused me a lot of confusion. If you copy/paste the text as is and don't realise then your build won't fail but it won't run any before_compile step either.
f

Frank

11/10/2021, 9:21 PM
Hey @Ben Ledbury, u mean the spaces before each line?
b

Ben Ledbury

11/10/2021, 9:21 PM
Yeah
It comes out as
Copy code
" <200b>before_compile:                                                                              
  <200b>- echo //registry.npmjs.org/:_authToken=$NPM_TOKEN >> ~/.npmrc"
f

Frank

11/10/2021, 9:24 PM
Oh no.. it might be an OS/browser issue
What’s ur OS and browser?
b

Ben Ledbury

11/10/2021, 9:25 PM
Mac OS, Chrome 95.0.4638.69
It's only on a few specific code fragments
The one here is fine for example:
I suspect it's something to do with putting code inside a markdown list
f

Frank

11/10/2021, 9:39 PM
Ah I see. Taking a look right now …
b

Ben Ledbury

11/10/2021, 9:43 PM
No problem, just want to help anyone else avoid the same frustration, loving the product otherwise 👍
f

Frank

11/10/2021, 9:45 PM
Just pushed out a fix. Can you refresh the page and see if it’s fixed here https://seed.run/docs/private-npm-modules.html
b

Ben Ledbury

11/10/2021, 9:46 PM
Yeah, that's fixed that one
f

Frank

11/10/2021, 9:46 PM
Sounds good! Will go over and check the others.
Thanks for bringing it up @Ben Ledbury! 🙌
b

Ben Ledbury

11/10/2021, 9:46 PM
Thanks for such a speedy fix
f

Frank

11/10/2021, 9:47 PM
A few folks have run into this before… always thought it’s their IDE 😅
b

Ben Ledbury

11/10/2021, 9:49 PM
It wouldn't be so bad except that nothing actually fails in the build, it just silently ignores it
I only noticed because the VSCode syntax highlighting put the dash as blue instead of black
a

Adrián Mouly

11/10/2021, 10:31 PM
I had same problem on SST docs in the past.
4 Views