How to initialize Material Web V3 Components

111 Views Asked by At

How to initialize Material Web V3 Components, e.g I want to create a text field:

<md-filled-text-field label="Label" value="Value"></md-filled-text-field>

Code:

<html>
<head>
    <script type="module" src="https://cdn.jsdelivr.net/npm/@material/[email protected]/all.js"></script>
</head>
<body>
    <md-filled-text-field label="Label" value="Value"></md-filled-text-field>
</body>
</html>

The error I get is the following:

Uncaught TypeError: Failed to resolve module specifier "tslib". Relative references must start with either "/", "./", or "../".

0

There are 0 best solutions below