Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gastby build failing #9464

Closed
Strandedpirate opened this issue Oct 27, 2018 · 8 comments
Closed

gastby build failing #9464

Strandedpirate opened this issue Oct 27, 2018 · 8 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs more info Needs triaging and reproducible examples or more information to be resolved

Comments

@Strandedpirate
Copy link

I haven't modified anything and getting this error on Windows 10. I tried deleting the .cache directory and building again, but the same error occurs.

Thoughts?

 Building static HTML for pages failed

See our docs page on debugging HTML builds for help https://goo.gl/yL9lND

  16 | 
  17 | const stats = JSON.parse(
> 18 |   fs.readFileSync(`${process.cwd()}/public/webpack.stats.json`, `utf-8`)
     |                              ^
  19 | )
  20 | 
  21 | const chunkMapping = JSON.parse(


  WebpackError: TypeError: Object(...).cwd is not a function
@Yurickh
Copy link
Contributor

Yurickh commented Oct 27, 2018

This looks similar/related to remarkjs/react-markdown#189?

@Yurickh
Copy link
Contributor

Yurickh commented Oct 27, 2018

Which starter is this error happening with, @Strandedpirate?

@Strandedpirate
Copy link
Author

@kakadiadarpan
Copy link
Contributor

@Strandedpirate I'm unable to reproduce this on MacOS. Can you provide environment information by running gatsby info --clipboard?

@kakadiadarpan kakadiadarpan added the status: needs more info Needs triaging and reproducible examples or more information to be resolved label Oct 29, 2018
@Strandedpirate
Copy link
Author

λ gatsby info --clipboard                                                               
                                                                                        
  System:                                                                               
    OS: Windows 10                                                                      
    CPU: x64 Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz                                  
  Binaries:                                                                             
    Yarn: 1.9.4 - ~\AppData\Roaming\npm\yarn.CMD                                        
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD                                        
  Browsers:                                                                             
    Edge: 42.17134.1.0                                                                  
  npmPackages:                                                                          
    gatsby: next => 2.0.0-rc.28                                                         
    gatsby-plugin-catch-links: ^2.0.2 => 2.0.2                                          
    gatsby-plugin-manifest: next => 2.0.2-rc.1                                          
    gatsby-plugin-offline: next => 2.0.0-rc.9                                           
    gatsby-plugin-react-helmet: next => 3.0.0-rc.1                                      
    gatsby-plugin-sass: ^2.0.1 => 2.0.1                                                 
    gatsby-plugin-typography: ^2.2.0 => 2.2.0                                           
    gatsby-source-filesystem: ^2.0.1 => 2.0.1                                           
    gatsby-transformer-remark: ^2.1.3 => 2.1.3                                          
                                                                                        
error The system cannot find the path specified.                                        
                                                                                        
                                                                                        
                                                                                        
  Error: The system cannot find the path specified.                                     
                                                                                        
  - envinfo.js:1 Function.e.exports.sync                                                
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:7778                                 
                                                                                        
  - envinfo.js:1 Object.copySync                                                        
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:104976                               
                                                                                        
  - envinfo.js:1 Object.t.writeSync.e [as writeSync]                                    
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:123499                               
                                                                                        
  - envinfo.js:1                                                                        
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:124274                               
                                                                                        
  - envinfo.js:1 Promise.all.then.e                                                     
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:124289                               
                                                                                        
  - util.js:16 tryCatcher                                                               
    [npm]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23                              
                                                                                        
  - promise.js:512 Promise._settlePromiseFromHandler                                    
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31                          
                                                                                        
  - promise.js:569 Promise._settlePromise                                               
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18                          
                                                                                        
  - promise.js:614 Promise._settlePromise0                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10                          
                                                                                        
  - promise.js:694 Promise._settlePromises                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18                          
                                                                                        
  - promise.js:638 Promise._fulfill                                                     
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:638:18                          
                                                                                        
  - promise_array.js:126 PromiseArray._resolve                                          
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:126:19                    
                                                                                        
  - promise_array.js:144 PromiseArray._promiseFulfilled                                 
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:144:14                    
                                                                                        
  - promise.js:574 Promise._settlePromise                                               
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:574:26                          
                                                                                        
  - promise.js:614 Promise._settlePromise0                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10                          
                                                                                        
  - promise.js:694 Promise._settlePromises                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18                          
                                                                                        
                                                                                        
error UNHANDLED REJECTION                                                               
                                                                                        
                                                                                        
  Error: The system cannot find the path specified.                                     
                                                                                        
  - envinfo.js:1 Function.e.exports.sync                                                
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:7778                                 
                                                                                        
  - envinfo.js:1 Object.copySync                                                        
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:104976                               
                                                                                        
  - envinfo.js:1 Object.t.writeSync.e [as writeSync]                                    
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:123499                               
                                                                                        
  - envinfo.js:1                                                                        
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:124274                               
                                                                                        
  - envinfo.js:1 Promise.all.then.e                                                     
    [npm]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:124289                               
                                                                                        
  - util.js:16 tryCatcher                                                               
    [npm]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23                              
                                                                                        
  - promise.js:512 Promise._settlePromiseFromHandler                                    
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31                          
                                                                                        
  - promise.js:569 Promise._settlePromise                                               
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18                          
                                                                                        
  - promise.js:614 Promise._settlePromise0                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10                          
                                                                                        
  - promise.js:694 Promise._settlePromises                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18                          
                                                                                        
  - promise.js:638 Promise._fulfill                                                     
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:638:18                          
                                                                                        
  - promise_array.js:126 PromiseArray._resolve                                          
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:126:19                    
                                                                                        
  - promise_array.js:144 PromiseArray._promiseFulfilled                                 
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:144:14                    
                                                                                        
  - promise.js:574 Promise._settlePromise                                               
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:574:26                          
                                                                                        
  - promise.js:614 Promise._settlePromise0                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10                          
                                                                                        
  - promise.js:694 Promise._settlePromises                                              
    [npm]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18                          
                                                                                        

@Strandedpirate
Copy link
Author

The cut of this project I had was using the "next" label for several gatsby packages. I upgraded everything to "latest" but the build is still failing.

    "gatsby": "^2.0.38",
    "gatsby-plugin-catch-links": "^2.0.6",
    "gatsby-plugin-manifest": "^2.0.5",
    "gatsby-plugin-offline": "^2.0.5",
    "gatsby-plugin-react-helmet": "^3.0.0",
    "gatsby-plugin-sass": "^2.0.3",
    "gatsby-plugin-typography": "^2.2.1",
    "gatsby-source-filesystem": "^2.0.7",
    "gatsby-transformer-remark": "^2.1.11",

@gatsbot
Copy link

gatsbot bot commented Jan 28, 2019

Old issues will be closed after 30 days of inactivity. This issue has been quiet for 20 days and is being marked as stale. Reply here or add the label "not stale" to keep this issue open!

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Jan 28, 2019
@gatsbot
Copy link

gatsbot bot commented Feb 8, 2019

Hey again!

It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.

Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Gatsby community!

@gatsbot gatsbot bot closed this as completed Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs more info Needs triaging and reproducible examples or more information to be resolved
Projects
None yet
Development

No branches or pull requests

3 participants