screepers / screeps-typescript-starter

Starter kit for TypeScript-based Screeps AI codes.
https://screepers.gitbook.io/screeps-typescript-starter/
The Unlicense
441 stars 318 forks source link

Updating dependencies, especially Rollup and TypeScript #102

Open ChristianIvicevic opened 5 years ago

ChristianIvicevic commented 5 years ago

Are there any plans to update this package properly to the newest versions of the various dependencies? By doing so manually I noticed the following issues:

(!) rpt2 plugin: The ongenerate hook used by plugin rpt2 is deprecated. The generateBundle hook should be used instead.
(!) rpt2 plugin: The onwrite hook used by plugin rpt2 is deprecated. The generateBundle hook should be used instead.
(!) screeps plugin: The ongenerate hook used by plugin screeps is deprecated. The generateBundle hook should be used instead.
(!) screeps plugin: The onwrite hook used by plugin screeps is deprecated. The generateBundle hook should be used instead.
TheAifam5 commented 5 years ago

@ChristianIvicevic there is also another issue with source-map: Error: Unknown module 'fs'

fs (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:fs)
path (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:path)
lpx1233 commented 5 years ago

@ChristianIvicevic there is also another issue with source-map: Error: Unknown module 'fs'

fs (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:fs)
path (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:path)

Same issue here. Had to remove the usage of ErrorMapper in main.ts....

folke commented 3 years ago

The new source-map module is async only, so can't work with screeps. It needs to be pinned to =0.6.1, which is the last version that was not async.