Pinned post

“Work hard, be kind, and amazing things will happen.” – Conan O’Brien

I've been hurt
I've hurt (didn't want to)
...
I try to do good and don't look at who

Full sample at a code gist with a ref link to the author's solution (provided at @vercel/nextjs issues by @LincolnWDaniel
at a different context but with similar solution).

💻Use of config.resolve.alias in NextJS config

gist.github.com/nilsandrey/ebc

Show thread

You can use an alias and `config . resolve . alias` in config.

Show thread

There's something similar to Private Messages Groups in Mastodon?

@ricmac
Tech journalist @TheNewStack@twitter.com ✍️ | Founder, ReadWriteWeb @RWW@twitter.com

Nils boosted

“It is the very error of the moon;
She comes more nearer earth than she was wont,
And makes men mad.”
—William Shakespeare, Othello, Act 5, Scene 2.

shakespeare.mit.edu/othello/ot

Nils boosted

@rauschma
Writer of books on JavaScript and TypeScript which are free to read online: exploringjs.com

In @nextjs with @typescript, if you import outside your nextjs app folder (like in mono repos or mixing frameworks at code level instead "npming" components for whatever reason), you may receive an error due to the build process not recognizing ts files outside base paths.

e.g.: `import { member } from '../../lib/model/m1';`

Error message: "Module parse failed: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file"
...

“Work hard, be kind, and amazing things will happen.” – Conan O’Brien

Nils boosted

...and even, in that case, there're scenarios like PR created from forks (GitHub), where the preceding fetch must take place.

Show thread

Dear software developers dealing with git, understand what the «pull» concept is, remove the not really mandatory existence of a central server, and you can stop wondering about «pull request» vs «merge request» operation naming.

«Pull» said: "I'm a merge preceded by a fetch". So, by changing it with "merge" you're implying that attending the request didn't require fetching, but that's only true if you attend the request on a central server where the changes are already pushed;

There are moments in which you fail too many times and then suddenly you nail it; that moment lasts forever.
“Work hard, be kind, and amazing things will happen.” – Conan O’Brien

In baseball, someone who fails 7 times out of 10 offensively for life is a beast (see related Ted Williams quote).
In life, it is the same. There are even times when you need just win once and that's it.

Show older
Mastodon

The original server operated by the Mastodon gGmbH non-profit