pglejzer / timepicker-ui

timepicker-ui is an easy library with timepicker. Fully wrote with TypeScript. This library is based on Material Design from Google.
MIT License
64 stars 19 forks source link

Can't build from sourсe #55

Closed new-user-name closed 1 year ago

new-user-name commented 1 year ago

Hi, thanks a lot foк the wonderful tool. The question is probably my bad knowledge of js machinery.

1) Cloned repo in my Laravel project 2) npm run build, i.e. "build": "webpack && rollup -c",

ERROR in ./docs/index.ts 30:45
Module parse failed: Unexpected token (30:45)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| currentDate.setMinutes(0);
| 
> const test = document.querySelector('.test') as HTMLDivElement;

it seems something is missing from my webpack installation.

new-user-name commented 1 year ago

It seems that the problem is in my setup -- the repo was cloned too deep into my project. Everything is ok when in root.