question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Following the usage guide fails to run

See original GitHub issue

Following the usage guide, it currently fails with:

✖ ERROR ValidationError: ForkTsCheckerWebpackPlugin Invalid Options

options should NOT have additional properties
node -v
v12.18.2
npm -v
6.14.5

Output

npm install -g preact-cli

> preact-cli@2.2.1 postinstall /Users/seb/.nvm/versions/node/v12.18.2/lib/node_modules/preact-cli
> node -p 'require("./check.js")()'
true

+ preact-cli@2.2.1
updated 1 package in 19.837s
preact create typescript my-project

ℹ INFO Assuming you meant preactjs-templates/typescript...
✔ Done!

To get started, cd into the new directory:
  cd my-project

To start a development live-reload server:
  npm run start

To create a production build (in ./build):
  npm run build

To start a production HTTP/2 server:
  npm run serve
cd my-project
npm install

audited 1884 packages in 7.109s

88 packages are looking for funding
  run `npm fund` for details

found 1 moderate severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
npm run dev

> my-project@0.0.0 dev /Users/seb/Development/testbed/my-project
> preact watch

✖ ERROR ValidationError: ForkTsCheckerWebpackPlugin Invalid Options

options should NOT have additional properties
options should NOT have additional properties
options should NOT have additional properties

    at Object.validateOptions [as default] (/Users/seb/Development/testbed/my-project/node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils/src/validateOptions.js:32:11)
    at new ForkTsCheckerWebpackPlugin (/Users/seb/Development/testbed/my-project/node_modules/fork-ts-checker-webpack-plugin/lib/ForkTsCheckerWebpackPlugin.js:28:31)
    at module.exports (/Users/seb/Development/testbed/my-project/node_modules/preact-cli/lib/lib/webpack/webpack-base-config.js:315:7)
    at module.exports (/Users/seb/Development/testbed/my-project/node_modules/preact-cli/lib/lib/webpack/webpack-client-config.js:347:3)
    at devBuild (/Users/seb/Development/testbed/my-project/node_modules/preact-cli/lib/lib/webpack/run-webpack.js:15:21)
    at module.exports (/Users/seb/Development/testbed/my-project/node_modules/preact-cli/lib/lib/webpack/run-webpack.js:278:39)
    at module.exports (/Users/seb/Development/testbed/my-project/node_modules/preact-cli/lib/commands/watch.js:21:9)
    at Sade.parse (/Users/seb/Development/testbed/my-project/node_modules/sade/lib/index.js:190:56)
    at Object.<anonymous> (/Users/seb/Development/testbed/my-project/node_modules/preact-cli/lib/index.js:129:6)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-project@0.0.0 dev: `preact watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-project@0.0.0 dev 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!     /Users/seb/.npm/_logs/2020-07-09T19_29_35_395Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mkrlcommented, Jul 14, 2020

It should be fixed with the latest rc

Can confirm it was fixed for me in rc 18. Thanks!

0reactions
rmtsrccommented, Jul 15, 2020

This is now working correctly for me, thanks 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repair a storage device in Disk Utility on Mac - Apple Support
If you have problems with your disk, use Disk Utility on your Mac to test and ... In the First Aid dialog, click...
Read more >
How to perform a clean boot in Windows - Microsoft Support
To use the Windows Installer service when system services are not loaded, start the service manually. Here's how: Select Search , then type...
Read more >
Troubleshoot EC2/On-Premises deployment issues
Troubleshoot deployment issues you might encounter when you use CodeDeploy to deploy to an EC2/On-Premises compute platform.
Read more >
Smart Call Home User Guide - Troubleshooting and Support ...
The following error may be logged on the Cisco device when sending ... If ICMP echo's or echo replies are not blocked in...
Read more >
Troubleshooting - CryoSPARC Guide
CryoSPARC does not start or encounters error on startup · 1. Check that you are on the master node or workstation where cryosparc_master...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found