ForsakenHarmony / parket

A library to manage application state, heavily inspired by mobx-state-tree
434 stars 17 forks source link

Example has an error #36

Open jswhisperer opened 5 years ago

jswhisperer commented 5 years ago

`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 :(

✖ 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;
export type ModelCommons = {

@ ./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

`

ForsakenHarmony commented 5 years ago

Yup, I never updated the import