material-color-utilities icon indicating copy to clipboard operation
material-color-utilities copied to clipboard

Provide e2e examples for typescript

Open clocksmith opened this issue 2 years ago • 1 comments

  • Can have e2e examples for other languages, but typescript is the most DIY For example

import { Hct } from "@material/material-color-utilities";

produces

Uncaught TypeError: Failed to resolve module specifier "@material/material-color-utilities". Relative references must start with either "/", "./", or "../".

Probably have a misconfigured tsconfig.json or package.json. It would be nice to see a simple config that can run in a browser

clocksmith avatar Apr 26 '23 12:04 clocksmith

It works for me, but I have to wait 1 or 2 seconds with Sveltekit before the theme is applied.

  • Can have e2e examples for other languages, but typescript is the most DIY For example

import { Hct } from "@material/material-color-utilities";

produces

Uncaught TypeError: Failed to resolve module specifier "@material/material-color-utilities". Relative references must start with either "/", "./", or "../".

Probably have a misconfigured tsconfig.json or package.json. It would be nice to see a simple config that can run in a browser

Have you run npm i with the package name?

AxelBriche avatar May 01 '23 21:05 AxelBriche