Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

rootDir does not exist in type IPublicOutputConfig #2026

Open
petertorelli opened this issue Oct 16, 2021 · 0 comments
Open

rootDir does not exist in type IPublicOutputConfig #2026

petertorelli opened this issue Oct 16, 2021 · 0 comments

Comments

@petertorelli
Copy link

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"
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant