question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build on Windows

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
devversioncommented, Aug 8, 2017

@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)

1reaction
Pikachewscommented, Aug 8, 2017

The errors seem to originate from a different place now:

[14:35:39] TypeError: Cannot read property 'toString' of null
    at D:\Stuff\Projects\angular\material2\tools\package-tools\secondary-entry-points.ts:42:13
    at Array.forEach (native)
    at Object.getSecondaryEntryPointsForPackage (D:\Stuff\Projects\angular\material2\tools\package-tools\secondary-entry-points.ts:38:14)
    at BuildPackage.get [as secondaryEntryPoints] (D:\Stuff\Projects\angular\material2\tools\package-tools\build-package.ts:36:36)
    at BuildPackage.<anonymous> (D:\Stuff\Projects\angular\material2\tools\package-tools\build-package.ts:59:34)
    at step (D:\Stuff\Projects\angular\material2\tools\package-tools\build-package.ts:32:23)
    at Object.next (D:\Stuff\Projects\angular\material2\tools\package-tools\build-package.ts:13:53)
    at fulfilled (D:\Stuff\Projects\angular\material2\tools\package-tools\build-package.ts:4:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:169:7)
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found