Rails+Heroku does not deploy package.json dependencies

Asked 2 years ago, Updated 2 years ago, 119 views

We are developing the Rails project by deploying it to heroku.
I was able to work on package.json in the dev environment as follows.

{
  "name": "app-rails",
  "private"—true,
  "dependencies": {
    "primer-css": "^9.6.0"
  }
}

After deploying it, File to import not found or unreliable: primer-cs/index.scss..
herokurun cat package.json did not reflect dependencies

{
  "name": "app-rails",
  "private"—true,
  "dependencies": {}
}

Is there a lack of setting that does not reflect dependencies?
Thank you for your cooperation.

ruby-on-rails node.js heroku npm

2022-09-30 19:00

1 Answers

application.css ➜ application.scss

@import "primer-css/index.scss"; <@import "primer-css/index";

and it passed by.Sorry for the misconfiguration.


2022-09-30 19:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.