tag:help.appveyor.com,2012-11-13:/discussions/problems/7309-cant-resolve-fs-when-running-size-limitAppVeyor: Discussion 2018-08-25T02:19:13Ztag:help.appveyor.com,2012-11-13:Comment/431816122017-08-10T06:35:45Z2017-08-10T06:35:46ZCan't resolve 'fs' when running "size-limit"<div><p>In the latest builds of my OSS project edge-core I get pretty unhelpful errors in the end of the CI run where I execute "size-limit" to detect the bundle sizes of my library. Interestingly the same worked a few versions before. The library itself tests fine and builds fine it seems. The only issue is running size limit.</p>
<pre>
<code>Can't resolve 'fs' in 'C:\projects\edge-core\lib'
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "size"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! edge-core@0.4.17 size: `prepublish && size-limit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the edge-core@0.4.17 size script 'prepublish && size-limit'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the edge-core package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prepublish && size-limit
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs edge-core
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls edge-core
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\projects\edge-core\npm-debug.log
npm ERR! Test failed. See above for more details.
Command exited with code 1</code>
</pre>
<p>Project is <a href="https://ci.appveyor.com/project/swernerx/edge-core">https://ci.appveyor.com/project/swernerx/edge-core</a></p>
<p>I mean after all "fs" is a core module in NodeJS.</p>
<p>Has anybody an idea why this fails?</p>
<p>Thanks!</p></div>Sebastian Wernertag:help.appveyor.com,2012-11-13:Comment/431816122017-08-11T00:13:52Z2017-08-11T00:13:52ZCan't resolve 'fs' when running "size-limit"<div><p>You happy build uses <code>edge-core-0.4.</code><strong>15</strong>, unhappy one -- <code>edge-core-0.4.</code><strong>16</strong></p></div>Ilya Finkelshteyn