+
Skip to content

[vite] Internal server error: [sass] The canonicalize() method must return a URL #1631

Closed
@ArnieD

Description

@ArnieD

Please provide the environment you discovered this bug in.

Same result when creating an new Analog project from scratch with Analog 1.14.

Which area/package is the issue in?

create-analog

Description

When adding Angular Material to my Analog project, I followed the steps from the Integrations page.

Same result when creating an new Analog project from scratch.

Please provide the exception or error you saw

[vite] Internal server error: [sass] The canonicalize() method must return a URL.
  ╷
2 │ @use '@angular/material' as mat;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/styles.scss 2:1  root stylesheet
  Plugin: vite:css
  File: /workspaces/DSM/analog-project/src/styles.scss?direct:2:1
  [sass] The canonicalize() method must return a URL.
    ╷
  2 │ @use '@angular/material' as mat;
    │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    src/styles.scss 2:1  root stylesheet
      at /workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:85017:25
      at _wrapJsFunctionForAsync_closure.$protected (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:5053:15)
      at _wrapJsFunctionForAsync_closure.call$2 (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:38032:12)
      at Object._asyncStartSync (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:5017:20)
      at JSToDartAsyncImporter.canonicalize$body$JSToDartAsyncImporter (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:85023:16)
      at JSToDartAsyncImporter.canonicalize$1 (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:84979:19)
      at AsyncImportCache__canonicalize_closure0.call$0 (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:95091:28)
      at Object._rootRun (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:5457:16)
      at StaticClosure.<anonymous> (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:124183:16)
      at _CustomZone.run$1$1 (/workspaces/DSM/analog-project/node_modules/sass/sass.dart.js:39502:39)

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载