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.

Not able to build on Windows

See original GitHub issue

Variable names in the script is preventing build on windows.

> uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map

fs.js:557
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'C:\...\Forks\preact-router\${npm_package_main}.map'
    at Object.fs.openSync (fs.js:557:18)
    at Object.fs.readFileSync (fs.js:467:33)
    at Object.<anonymous> (C:\...\Forks\preact-router\node_modules\uglify-js\bin\uglifyjs:285:30)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Module.runMain (module.js:607:10)
    at run (bootstrap_node.js:382:7)

related: #49

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ForsakenHarmonycommented, Feb 26, 2017

Yes, this is a known issue, if you are on windows 10 you can try bash for windows

(but that crashes when you run the tests)

0reactions
developitcommented, Feb 26, 2017

I’m not big on them. Rollup already supports 90% of what is needed here - for example, it can output gzipped bundle size. I’m just not using it properly 😛

Read more comments on GitHub >

github_iconTop Results From Across the Web

New pc build windows 10 will not boot - Microsoft Community
To boot you into the Advanced Startup Options screen, press Shift and click Restart. Here you see several options to troubleshoot. Well, in ......
Read more >
Build not build/rebuild/clean doesn't starting
After restarting VS, I can't start build/rebuild/clean process. There are no reaction. ... Visual Studiowindows 10.0NodeJSVisual Studio 2017 version 15.1.
Read more >
Why Doesn't My Visual Studio Solution Build ... - Code Buckets
Strangely that's not on my CV. So here are the steps I go through to get a rogue project building in Visual Studio....
Read more >
Can't build on Windows · Issue #3 · mscdex/cpu-features
Windows 10 Enterprise 64 bits 21H1 build 19043.1237 node v14.17.6 npm 6.14.15 cmake 3.21.3 Visual Studio Enterprise 2019 Version 16.11.3 ...
Read more >
Build and install from source code (Windows version)
Apart from the libraries where a minimum version is specified, older versions may or may not work. But on the other hand, building...
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