Microbundle: Typescript watch fails

Created on 19 Sep 2018  路  3Comments  路  Source: developit/microbundle

Given the following files:

// package.json
"main": "dist/package.js",
"umd:main": "dist/package.umd.js",
"module": "dist/package.mjs",
"source": "src/package.ts",
"devDependencies": {
  "microbundle": "^0.6.0",
  "typescript": "^3.0.3"
}
// src/package.ts
class MyPackage {
  test() { return 42 }
}

export default MyPackage

Running this command errors:

$ microbundle watch

Error: ENOENT: no such file or directory, rename 
'path/to/repo/.rpt2_cache/69260a50af581442f71199615d218472c8ee4f28/code/cache_' -> 
'path/to/repo/.rpt2_cache/69260a50af581442f71199615d218472c8ee4f28/code/cache'

Might be related to #159 ?

No configuration files, no tsconfig. Note that microbundle (build) works just fine.

bug

Most helpful comment

I think this was fixed on https://github.com/developit/microbundle/pull/204 would be nice to have a release adding this 馃檹

All 3 comments

I think this was fixed on https://github.com/developit/microbundle/pull/204 would be nice to have a release adding this 馃檹

I'm just trying microbundle as it looks very promising, however currently due to this it's a bit annoying during dev 馃尮

https://github.com/developit/microbundle/releases/tag/0.7.0

Just published 0.7.0

Feel free to comment if this is not fixed

Was this page helpful?
0 / 5 - 0 ratings