Open
Description
When attempting to use this package in a VSCode web extension
compiled using webpack
I receive a plethora of errors and warnings
VSCode web requires extensions to be compiled with CommonJS and to be totally self contained in a single file (dependencies included)
sadly most of the errors seem to come from https://github.com/groupon/cson-parser
which is now archived
so idk if you're able to fix it
things like mainModule.paths = require('module')._nodeModulePaths(dir);
not being able to be resolved
my repo https://github.com/RedCMD/TmLanguage-Syntax-Highlighter
haven't committed any CSON code yet
maybe I should just fork https://github.com/groupon/cson-parser
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 169:50-68
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/cson/edition-esnext/index.js 457:15-43
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 214:42-49
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/cson/edition-esnext/index.js 457:15-43
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 218:26-33
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/cson/edition-esnext/index.js 457:15-43
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 246:6-24
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/cson/edition-esnext/index.js 457:15-43
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 250:21-39
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/cson/edition-esnext/index.js 457:15-43
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/coffeescript/lib/coffee-script/register.js 19:6-24
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/coffeescript/register.js 1:0-39
@ ./node_modules/cson/edition-esnext/index.js 610:4-36
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/coffeescript/lib/coffee-script/register.js 23:6-24
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/coffeescript/register.js 1:0-39
@ ./node_modules/cson/edition-esnext/index.js 610:4-36
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
WARNING in ./node_modules/requirefresh/edition-es2022/index.js 16:19-40
Critical dependency: the request of a dependency is an expression
@ ./node_modules/cson/edition-esnext/index.js 11:15-46
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
3 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
ERROR in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 168:23-57
Module not found: Error: Can't resolve 'module' in 'E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\coffeescript\lib\coffee-script'
@ ./node_modules/cson/edition-esnext/index.js 457:15-43
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
ERROR in ./node_modules/coffeescript/lib/coffee-script/register.js 7:18-42
Module not found: Error: Can't resolve 'child_process' in 'E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\coffeescript\lib\coffee-script'
@ ./node_modules/coffeescript/register.js 1:0-39
@ ./node_modules/cson/edition-esnext/index.js 610:4-36
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
ERROR in ./node_modules/coffeescript/lib/coffee-script/register.js 25:13-30
Module not found: Error: Can't resolve 'module' in 'E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\coffeescript\lib\coffee-script'
@ ./node_modules/coffeescript/register.js 1:0-39
@ ./node_modules/cson/edition-esnext/index.js 610:4-36
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
ERROR in ./node_modules/extract-opts/edition-browsers/index.js 4:20-42
Module not found: Error: Package path . is not exported from package E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\typechecker (see exports field in E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\typechecker\package.json)
@ ./node_modules/cson/edition-esnext/index.js 9:25-48
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
ERROR in ./node_modules/extract-opts/edition-browsers/index.js 5:14-38
Module not found: Error: Package path . is not exported from package E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\eachr (see exports field in E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\eachr\package.json)
@ ./node_modules/cson/edition-esnext/index.js 9:25-48
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
ERROR in ./node_modules/safefs/source/index.js 10:13-42
Module not found: Error: Can't resolve 'child_process' in 'E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\safefs\source'
@ ./node_modules/cson/edition-esnext/index.js 5:9-26
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
ERROR in ./node_modules/safefs/source/index.js 14:23-57
Module not found: Error: Package path . is not exported from package E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\version-compare (see exports field in E:\repos\RedCMD\redcmd.tmlanguage-syntax-highlighter\node_modules\version-compare\package.json)
@ ./node_modules/cson/edition-esnext/index.js 5:9-26
@ ./src/fileConverter.ts 43:31-46
@ ./src/extension.ts 52:24-50
Metadata
Metadata
Assignees
Labels
No labels