Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d884d14c
Commit
d884d14c
authored
Mar 12, 2021
by
Michael Lunøe
Committed by
Mike Jang
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs(troubleshooting): add core-js issue + remedy
parent
dcfda9ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
doc/development/fe_guide/troubleshooting.md
doc/development/fe_guide/troubleshooting.md
+27
-0
No files found.
doc/development/fe_guide/troubleshooting.md
View file @
d884d14c
...
...
@@ -39,3 +39,30 @@ See [this video](https://youtu.be/-BkEhghP-kM) for an in-depth overview and inve
```
Please note that
`toMatchObject`
actually changes the nature of the assertion and won't fail if some items are
**missing**
from the expectation.
### Script issues
## `core-js` errors when running scripts within the GitLab repository
The following command assumes you've set up the GitLab repository in the
`~/workspace/gdk`
directory. When running scripts within the GitLab repository,
such as code transformations, you might run into issues with
`core-js`
like this:
```
shell
~/workspace/gdk/gitlab/node_modules/core-js/modules/es.global-this.js:7
$(
{
^
TypeError:
$
is not a
function
at Object.<anonymous>
(
~/workspace/gdk/gitlab/node_modules/core-js/modules/es.global-this.js:6:1
)
at Module._compile
(
internal/modules/cjs/loader.js:1063:30
)
at Module._compile
(
~/workspace/gdk/gitlab/node_modules/pirates/lib/index.js:99:24
)
at Module._extensions..js
(
internal/modules/cjs/loader.js:1092:10
)
at Object.newLoader
[
as .js]
(
~/workspace/gdk/gitlab/node_modules/pirates/lib/index.js:104:7
)
at Module.load
(
internal/modules/cjs/loader.js:928:32
)
at Function.Module._load
(
internal/modules/cjs/loader.js:769:14
)
at Module.require
(
internal/modules/cjs/loader.js:952:19
)
at require
(
internal/modules/cjs/helpers.js:88:18
)
at Object.<anonymous>
(
~/workspace/gdk/gitlab/node_modules/core-js/modules/esnext.global-this.js:2:1
)
```
**Remedy - Try moving the script into a separate repository and point to it to files in the GitLab repository**
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment