notion-enhancer / notion-enhancer

An enhancer/customiser for the all-in-one productivity workspace Notion
https://notion-enhancer.github.io/
MIT License
4.71k stars 241 forks source link

[Crash] Manual Installation is broken? #684

Open Davoleo opened 2 years ago

Davoleo commented 2 years ago

What is happening? Notion doesn't start but crashes with JavaScript error after applying notion-enhancer

What should be happening? Notion should be launched correctly

Screenshots (if applicable): image

Operating system/browser name & version: Windows 10 21H2

notion-enhancer and/or notion-repackaged version: notion-enhancer/0.11.0 win32-x64/10.0.19044 node/v16.9.0

dragonwocky commented 2 years ago

can't currently be solved, it's a bug. until it's fixed use the notion-repackaged installation instead @SalemNabeelSalem

faraazb commented 2 years ago

I can get it to work by editing this line to fix the inserted require statement as

`\n\n//notion-enhancer\nrequire('notion-enhancer')('${target.replace(/\\/g, "/")}', exports, (js) => eval(js))`
// target.replace(/\\/g, "\\\\")} would also work I guess

I don't know if this is the best way but it shouldn't affect other platforms.

miozus commented 2 years ago

update: I got a method to use it after 1 month past.

before:

circle-forever

require :

backslash \ ⇒ slash /

but Notion launched with circle round and round forever.

Not work on Windows 11 21H2 22000.434


after:

  1. npm install notion-enchaner & apply

notion-enhance-install

Don't modify any files after cmd notion-enhancer apply. Ignore what the bug notify message window while open Notion.exe.

  1. Just download Notion-enhancer.exe which called Installer under Windows part.

  2. Open with Notion-enhancer.exe from now on:

notion-enhancer

(ps. don't open with Notion.exe)