invicticide / fractive

Fractive is a free, open-source, Markdown-based hypertext authoring tool for writing interactive fiction.
http://fractive.io
Other
38 stars 5 forks source link

Invalid import for XRegExp causes build to fail #86

Closed audiodude closed 6 years ago

audiodude commented 6 years ago

What happened

Build fails:

$ npm install

> fractive@1.3.2 prepare /home/<REDACTED>/code/fractive
> npm run build

> fractive@1.3.2 build /home/<REDACTED>/code/fractive
> node build/Build.js

Generating type declarations...
Building engine...

src/Compiler.ts(31,26): error TS2307: Cannot find module 'XRegExp'.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fractive@1.3.2 build: `node build/Build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fractive@1.3.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/<REDACTED>/.npm/_logs/2018-04-19T20_38_45_068Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fractive@1.3.2 prepare: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fractive@1.3.2 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/<REDACTED>/.npm/_logs/2018-04-19T20_38_45_083Z-debug.log

Steps to reproduce

npm install

Expected behavior

Builds without error

I have a PR to fix this.