Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test & build not working on Windows #229

Open
scripthunter7 opened this issue Jan 3, 2023 · 0 comments · May be fixed by #252
Open

Test & build not working on Windows #229

scripthunter7 opened this issue Jan 3, 2023 · 0 comments · May be fixed by #252

Comments

@scripthunter7
Copy link
Contributor

E:\csstree>npm run test

> css-tree@2.3.1 test
> mocha lib/__tests --reporter ${REPORTER:-progress}


× ERROR: TypeError: Could not load reporter "${REPORTER:-progress}":

 Error: Cannot find module 'E:\csstree\${REPORTER:-progress}'
Require stack:
- E:\csstree\node_modules\mocha\lib\cli\run-helpers.js
- E:\csstree\node_modules\mocha\lib\cli\options.js
- E:\csstree\node_modules\mocha\bin\mocha
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
    at Function.Module._load (node:internal/modules/cjs/loader:804:27)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at exports.validateLegacyPlugin (E:\csstree\node_modules\mocha\lib\cli\run-helpers.js:237:25)
    at E:\csstree\node_modules\mocha\lib\cli\run.js:354:9 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'E:\\csstree\\node_modules\\mocha\\lib\\cli\\run-helpers.js',
    'E:\\csstree\\node_modules\\mocha\\lib\\cli\\options.js',
    'E:\\csstree\\node_modules\\mocha\\bin\\mocha'
  ]
}
    at createInvalidReporterError (E:\csstree\node_modules\mocha\lib\errors.js:207:13)
    at createInvalidLegacyPluginError (E:\csstree\node_modules\mocha\lib\errors.js:341:14)
    at createUnknownError (E:\csstree\node_modules\mocha\lib\cli\run-helpers.js:220:5)
    at exports.validateLegacyPlugin (E:\csstree\node_modules\mocha\lib\cli\run-helpers.js:239:15)
    at E:\csstree\node_modules\mocha\lib\cli\run.js:354:9 {
  code: 'ERR_MOCHA_INVALID_REPORTER',
  reporter: '${REPORTER:-progress}'
}
E:\csstree>npm run build

> css-tree@2.3.1 build
> npm run bundle && npm run esm-to-cjs --


> css-tree@2.3.1 bundle
> node scripts/bundle

E:\csstree\node_modules\esbuild\lib\main.js:1356
        return callback(new Error(error), null);
                        ^

Error: [replace] "onLoad" filter is not a valid Go regular expression: "(E:\\csstree\\lib\\data\\.js|E:\\csstree\\lib\\data\\.cjs|E:\\csstree\\lib\\version\\.js|E:\\csstree\\lib\\version\\.cjs)$"
    at E:\csstree\node_modules\esbuild\lib\main.js:1356:25
    at E:\csstree\node_modules\esbuild\lib\main.js:678:9
    at handleIncomingPacket (E:\csstree\node_modules\esbuild\lib\main.js:773:9)
    at Socket.readFromStdout (E:\csstree\node_modules\esbuild\lib\main.js:644:7)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
@scripthunter7 scripthunter7 linked a pull request Apr 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant