Skip to content

Cannot build on Windows #6211

@Pikachews

Description

@Pikachews

Bug, 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions