Skip to content

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

@matthew-shaw

Description

@matthew-shaw

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 "https://github.com/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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions