nornagon / saxi

Tools & library for driving the AxiDraw pen plotter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import scheme does not work with ts-loader v9

alexrudd2 opened this issue · comments

commented
  ./src/ui.tsx + 9 modules 61.4 KiB [not cacheable] [built] [code generated]
  ./node_modules/css-loader/dist/cjs.js!./src/style.css 18.9 KiB [built] [code generated]

ERROR in /Users/a.ruddick/Documents/github/saxi/src/ui.tsx
1:29-54
[tsl] ERROR in /Users/a.ruddick/Documents/github/saxi/src/ui.tsx(1,30)
      TS2792: Cannot find module '@rehooks/component-size'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
ts-loader-default_734d3b3c730a45e9

ERROR in /Users/a.ruddick/Documents/github/saxi/src/massager.ts
1:30-46
[tsl] ERROR in /Users/a.ruddick/Documents/github/saxi/src/massager.ts(1,31)
      TS2792: Cannot find module 'optimize-paths'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?

The problem is the import * introduced in decf9ab. It can be fixed by switching the import scheme, and adding "moduleResolution": "node"