`rootDir` does not exist in type IPublicOutputConfig
petertorelli opened this issue · 0 comments
petertorelli commented
Following the documentation with this example from this page:
import { fusebox } from 'fuse-box';
const fuse = fusebox({
entry: "src/public/index.ts",
target: "browser",
devServer: false,
webIndex: true,
});
fuse.runDev({
bundles: {
rootDir: 'dist/public',
}
});
Results in this error on build:
fuse.ts:12:3 - error TS2322: Type '{ rootDir: string; }' is not assignable to type 'IPublicOutputConfig'.
Object literal may only specify known properties, and 'rootDir' does not exist in type 'IPublicOutputConfig'.
12 rootDir: 'dist',
~~~~~~~~~~~~~~~
Versions:
% cat package.json
{
"name": "fusebox-study",
"version": "1.0.0",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"fuse-box": "^4.0.0",
"ts-node": "^10.3.0"
}
}