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

While shadowing a css file from a gatsby theme the changes are reflected in netlify preview but not on deployment #38740

Closed
2 tasks done
bhuwan1998 opened this issue Dec 5, 2023 · 4 comments
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@bhuwan1998
Copy link

Preliminary Checks

Description

While shadowing a css file from gatsby theme portfolio minimal, there was an issue that the css changes were reflected in gatsby develop and netlify preview as well. However, the changes were not reflected on deployment even though the changes can be seen on the github repository.

Reproduction Link

NA

Steps to Reproduce

  1. Shadow a css file that you want to change from a gatsby theme
  2. Deploy on netlify
  3. Check if the changes are being implemented on deployed website.
    ...

Expected Result

Webpage should include changes

Actual Result

Webpage have no extra changes that were made on the shadowed css file

Environment

System:
    OS: macOS 14.1.1
    CPU: (12) arm64 Apple M3 Pro
    Shell: 5.2.21 - /opt/homebrew/bin/bash
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.9.0/bin/npm
  Languages:
    Python: 3.11.5 - /opt/homebrew/Caskroom/miniconda/base/bin/python
  Browsers:
    Chrome: 119.0.6045.199
    Edge: 119.0.2151.97
    Safari: 17.1
  npmPackages:
    gatsby: ^5.8.0 => 5.12.9
    gatsby-image: ^3.11.0 => 3.11.0
    gatsby-plugin-google-analytics: ^5.12.0 => 5.12.0
    gatsby-plugin-google-gtag: ^5.12.3 => 5.12.3
    gatsby-plugin-image: ^3.11.0 => 3.12.3
    gatsby-plugin-mdx: ^5.12.3 => 5.12.3
    gatsby-plugin-sharp: ^5.12.0 => 5.12.3
    gatsby-source-filesystem: ^5.12.0 => 5.12.1
    gatsby-theme-portfolio-minimal: 4.6.3 => 4.6.3
    gatsby-transformer-inline-svg: ^1.2.0 => 1.2.0
    gatsby-transformer-sharp: ^5.12.0 => 5.12.3
  npmGlobalPackages:
    gatsby-cli: 5.12.4

Config Flags

No response

@bhuwan1998 bhuwan1998 added the type: bug An issue or pull request relating to a bug in Gatsby label Dec 5, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 5, 2023
@bhuwan1998 bhuwan1998 reopened this Dec 5, 2023
@bhavik001
Copy link

Hey @bhuwan1998
I am interested in working on this issue. Can you assign me this issue?

@bhuwan1998
Copy link
Author

@bhavik001 I am not a contributor of this project so I cannot assign you this issue. I do not know how to reproduce this issue if someone is not deploying on netlify. The changes are seen in the production preview on netlify but when published/deployed no changes are to be seen on the successful deployment.

@ChrisLaRocque
Copy link
Contributor

@bhuwan1998 if you clear the netlify cache + deploy from the netlify UI does the issue get fixed?

@bhuwan1998
Copy link
Author

@ChrisLaRocque thanks for the suggestion. I tried it and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants