✖ ERROR /Users/gnb/Sites/parket/src/util.ts
Module parse failed: Unexpected token (3:5)
You may need an appropriate loader to handle this file type.
| // Lighter Object.assign stand-in
| export function assign(
| obj: { [index: string]: any },
| props: { [index: string]: any }
| ) {
@ /Users/gnb/Sites/parket/src/integration/preact.js 4:0-36
@ ./src/components/main-section.js
@ ./src/components/app.js
@ ./src/index.js
@ ./node_modules/preact-cli/lib/lib/entry.js
@ multi ./node_modules/preact-cli/lib/lib/entry webpack-dev-server/client webpack/hot/dev-server
I'm using Node 8.11 and npm 6.4.1 I'm not sure if I need a typescript global or something? Webpack is confusing :(
✖ ERROR /Users/gnb/Sites/parket/src/index.ts
Module parse failed: Unexpected token (9:7)
You may need an appropriate loader to handle this file type.
const objKeys = Object.keys.bind(Object);
export type EmitFn = (evt: string, val: Event) => void;
`Build failed!
✖ ERROR /Users/gnb/Sites/parket/src/util.ts Module parse failed: Unexpected token (3:5) You may need an appropriate loader to handle this file type. | // Lighter Object.assign stand-in | export function assign( | obj: { [index: string]: any }, | props: { [index: string]: any } | ) { @ /Users/gnb/Sites/parket/src/integration/preact.js 4:0-36 @ ./src/components/main-section.js @ ./src/components/app.js @ ./src/index.js @ ./node_modules/preact-cli/lib/lib/entry.js @ multi ./node_modules/preact-cli/lib/lib/entry webpack-dev-server/client webpack/hot/dev-server I'm using Node 8.11 and npm 6.4.1 I'm not sure if I need a typescript global or something? Webpack is confusing :(
@ ./src/store.js 3:0-33 @ ./src/index.js @ ./node_modules/preact-cli/lib/lib/entry.js @ multi ./node_modules/preact-cli/lib/lib/entry webpack-dev-server/client webpack/hot/dev-server
`