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

Import error when used with govuk-prototype-kit #27

Open
matthew-shaw opened this issue Feb 19, 2024 · 0 comments
Open

Import error when used with govuk-prototype-kit #27

matthew-shaw opened this issue Feb 19, 2024 · 0 comments

Comments

@matthew-shaw
Copy link
Member

package.json:

  "dependencies": {
    "@govuk-prototype-kit/common-templates": "2.0.1",
    "@hmlr/frontend": "1.3.1",
    "govuk-frontend": "4.7.0",
    "govuk-prototype-kit": "13.16.0"
  }

On npm run dev:

sass.Exception [Error]: Can't find stylesheet to import.
  ╷
7 │ @import "govuk-frontend/govuk/base.scss";
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  node_modules/@hmlr/frontend/hmlr/_base.scss 7:9                      @import
  node_modules/@hmlr/frontend/hmlr/all.scss 3:9                        @import
  node_modules/@hmlr/frontend/hmlr/_prototype-kit.scss 3:9             @import
  .tmp/sass/_plugins.scss 9:9                                          @import
  node_modules/govuk-prototype-kit/lib/assets/sass/prototype.scss 5:9  root stylesheet
    at Object.wrapException (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:2153:43)
    at _EvaluateVisitor1._evaluate0$_loadStylesheet$4$baseUrl$forImport (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:94203:19)
    at _EvaluateVisitor1._evaluate0$_loadStylesheet$3$forImport (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:94232:19)
    at _EvaluateVisitor__visitDynamicImport_closure1.call$0 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:96512:17)
    at _EvaluateVisitor1._evaluate0$_withStackFrame$1$3 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:95652:25)
    at _EvaluateVisitor1._evaluate0$_withStackFrame$3 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:95658:19)
    at _EvaluateVisitor1._evaluate0$_visitDynamicImport$1 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:94150:19)
    at _EvaluateVisitor1.visitImportRule$1 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:94124:17)
    at ImportRule0.accept$1$1 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:100012:22)
    at ImportRule0.accept$1 (/home/mash/hmlr-prototype-kit/node_modules/sass/sass.dart.js:100015:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant