Skip to content

Commit

Permalink
docs(learned-lessons.md): document learned lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Jan 3, 2022
1 parent 6de7923 commit 6471d11
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/learned-lessons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Learned lessons

This document list some issues and how they were solved

## Error in Karma test: Disconnected because no message in 10000 ms

http://alexeyhorn.com/javascript/karma/2017/05/31/fix-karma-disconnected-error.html

## Error in nighwatch/sellenium test: session deleted because of page crash

Add the '--disable-dev-shm-usage' flag to the browser.

https://svdoscience.com/2021-03-17/fix-session-deleted-page-crash-selenium-grid-chrome-docker

## Support for aliases in imports outside webpack cotnext

Install the module-alias package - https://github.com/ilearnio/module-alias

Add to package.json (for an alias to @):

```js
"_moduleAliases": {
"@": "src/"
}
```

## Allow the use of import outside webpack

Install the @babel/register package - https://www.npmjs.com/package/@babel/register

Add to the file where you want to use import, before any import statment:

```js
require('@babel/register')
```

## Use babel.config.js to support dynamic compiling rules

babel.config.js replaces .babelrc and can have dynamic behavior

0 comments on commit 6471d11

Please sign in to comment.