material-web icon indicating copy to clipboard operation
material-web copied to clipboard

Extensionless imports in master-branch no longer supported by node-resolve

Open kmmbvnr opened this issue 2 years ago • 0 comments

Hi Team!

I've tried to get working the latest master version of the material-web, and got a lot of errors like:

Missing "./decorators" export in "lit" package

    material-web/textfield/outlined-text-field.ts:10:28:
      10 │ import {customElement} from 'lit/decorators';

It seems node-resole no longer allows to import without file extension, and all imprts should be changed to import {customElement} from 'lit/decorators.js'

https://github.com/rollup/plugins/issues/684#issuecomment-770517359

kmmbvnr avatar Aug 03 '22 04:08 kmmbvnr