-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnexss.nodejs.errors.js
More file actions
36 lines (30 loc) · 1.42 KB
/
nexss.nodejs.errors.js
File metadata and controls
36 lines (30 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
// Shared package errors
"Cannot find module '(.*?)'": "nexss js install <package>",
"Cannot resolve '(.*?)'": "nexss js install <package>",
"Error: Cannot find module '(.*?)'": "nexss js install <package>",
// Native dependencies issues
"Cannot open include file: 'dns_sd.h'": `Do you have bonjour SDK installed?
https://developer.apple.com/download/more/
(Remember to restart your computer after installation.)`,
// Bun-specific reference errors
"ReferenceError: Can't find variable: (.*?)\n":
"Define '<found1>' before you use it.",
// Specific match for Bun syntax errors
'Expected ";" but found "."': "Did you forget semi-colon ';' ?",
// Node.js reference errors
"ReferenceError: (.*?) is not defined":
"Define '<found1>' before you use it.",
// Common JavaScript errors for both runtimes
"Unexpected token": "Did you forget semi-colon ';' ?",
"SyntaxError: (.*?)": "Check your syntax: <found1>",
"TypeError: (.*?) is not a function":
"<found1> is not a function. Check if it's properly imported/defined.",
"TypeError: Cannot read properties of (undefined|null)":
"Trying to access properties of undefined or null. Check your variables.",
// Environment-specific errors
"Error: ENOENT: no such file or directory":
"File or directory not found. Check your paths.",
"Cannot find adapter":
"Install the required adapter: nexss js install <adapter-name>",
};