Cannot build on Windows
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
Should be able to build on Windows
What is the current behavior?
Can’t build package on windows
I get a bunch of this error repeatedly:
[19:07:56] TypeError in plugin 'run-sequence(cdk:build-release)'
Message:
Cannot read property 'toString' of null
Stack:
TypeError: Cannot read property 'toString' of null
at Object.replaceVersionPlaceholders (C:\angular\material2\tools\package-tools\version-placeholders.ts:18:9)
at Object.composeRelease (C:\angular\material2\tools\package-tools\build-release.ts:37:3)
at Gulp.<anonymous> (C:\angular\material2\tools\package-tools\gulp\build-tasks-gulp.ts:68:66)
at module.exports (C:\angular\material2\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (C:\angular\material2\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (C:\angular\material2\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (C:\angular\material2\node_modules\orchestrator\index.js:134:8)
at runNextSet (C:\angular\material2\node_modules\run-sequence\index.js:86:16)
at Gulp.onTaskEnd (C:\angular\material2\node_modules\run-sequence\index.js:75:5)
at emitOne (events.js:120:20)
[19:07:56] 'material:build' errored after 19 s
I would assume it has something to do with windows not having grep, considering line 18 of version-placeholders.ts
18 const files = spawnSync('grep', ['-ril', versionPlaceholderText, packageDir]).stdout
19 .toString()
20 .split('\n')
21 .filter(String);
What is the use-case or motivation for changing an existing behavior?
Wish to be able to build on windows
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular/material2@master
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Flutter Windows: cannot build App error MSB8066
rule' exited with code 1. [D:\DSI projects\sanjali_app\build\windows\flutter\flutter_assemble.vcxproj] Exception: Build process failed.
Read more >Flutter Windows: cannot build Windows App error MSB8066 ...
I am getting this error while building for windows on debug mode C:\Program Files (x86)\Microsoft Visual ...
Read more >Visual Studio 2019 Cannot build solutions that are in custom ...
Change to your solution's directory and msbuild and it will build. Just to be clear though, you need to have a solution and...
Read more >Cannot build mixxx from source in windows 11 - Help & Support
vcpkg-root file, installed folder and scripts folder inside new buildenv folder. Note that i cannot create folder mixxx-deps-2.3-x64-windows-049b5ad because ...
Read more >[llvm-dev] Cannot build Clang/LLVM on Windows with ...
It's unsupported on MS toolchain. It's too hard to make LLVM headers and libs DLL-ready. It would be theoretically possible on mingw. (oops,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Pikachews For developers on Windows that have the Git Bash installed, the issue should be fixed with https://github.com/angular/material2/commit/509e3e90f5ad985099342d587f6c703ef4406cea
For people without Git Bash, I’m planning on creating a new query that works for Windows as well (sometime soon)
The errors seem to originate from a different place now: