-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Can't publish to Netlify #13194
Comments
I'm going to take a stab at this and see if I can help you out @alfianridwan. Really nice site, by the way! |
Your repository has both a When I install via your NPM lock it works, when I install via your Yarn lock it doesn't. The package requirements between your two lock files are out of date. Your NPM lock file ( Your Yarn lock file is the one that Netlify is going to prefer using (as I understand it they look for There's a nice fix for this though. You can update your Yarn lock file by running Alternatively if you prefer to use NPM over Yarn, you could perhaps consider removing your I hope that helps, let me know how you get on 👍 |
Hi @andrewfairlie, thanks for the feedback! Still long way to go before website is fullly complete, still have the case study layout, actual case study writing, and my personal dreaded task: connecting to Prismic or any other headless CMS! In regards to the issue above, I think your suggestion might be right. I’m unsure to why there’s a Yarn file in my repository although I’ve never used Yarn. I assume Netlify had something to do with this, the log showed that it build with Yarn, IIRC. I’m unable to check if your suggestion could solve my issue as I’ll be without my laptop until Friday, so hopefully it works! Thank you so much for your effort and answer! Greatly appreciated :) |
Starters include both a Sorry about the confusion with respect to this and thank you for your detailed answer @andrewfairlie |
@alfianridwan lets close this out, as this seems fairly likely to be the solution. If, however, something else arises when you check it out, please reply back and we'll check this out again and help however we can! Thanks for using Gatsby 💜 |
Description
After making a few customs javascript changes on my website (all frontend matter, CSS grid layout stuff), my website is not able to be published on Netlify.
Steps to reproduce
Right now, the website is last updated in February 25th, where a Masonry layout is not applied yet. The website can be seen in https://alfian.co.
Git Repo is https://github.com/alfianridwan/ar3.0-gatsby, if previewing it and building it locally with
gatsby develop
andgatsby build
, it WORKS.Expected result
Netlify should publish the website normally, as how
gatsby build
works locally.Actual result
Netlify produced this error:
Environment
I have no idea to what the error is telling me. I'm going crazy trying to fix this error which I don't even understand in the first place. I am new to React, Gatsby and Javascript in general so my lack of experience failed to help me debug the error. Any help is appreciated!
The text was updated successfully, but these errors were encountered: