Henrik Wenz
Henrik Wenz
This is because your webpack target is `electron-renderer` so webpack assumes `require` is defined. ## Solutions ### Change your `webpack.target` *(recommended)* Change your `webpack.target` to be `web` (See `next.config.js`). [Docs](https://webpack.js.org/configuration/target/)...
Due to changes regarding WebSockets in Next.js 12, I will close this issue for now, since the new Next.js DevServer will have issues using this approach. **In detail:** Before Next.js...
Reopening because we found a working solution: https://github.com/HaNdTriX/next-electron-server/issues/7#issuecomment-1143371567
This should work: ```js const EditorJs = dynamic(() => import("react-editor-js"), { ssr: false, loading: () => loading editor.js ..., }); ```
This error often happens if you have a conflicting `.eslintrc` file up your directory tree. ## Example ``` | - some-dir/.eslintrc
Feel free to create a PR for this. Nevertheless, I'd prefer something like [jest](https://facebook.github.io/jest/) instead of `mocha/jasmine`. Here are some links that might help: * https://facebook.github.io/jest/ * https://www.npmjs.com/package/jest-webextension-mock
Sorry for my late reply. I am currently pretty busy. Please check out * https://facebook.github.io/jest/docs/en/webpack.html * https://facebook.github.io/jest/docs/en/tutorial-react.html
I did a little research and have to admit, that there is no good alternative to `sinon-chrome`. 😬
I believe we should check out puppet for testing: https://youtu.be/lhZOFUY1weo?t=1588
@andreicristianpetcu sorry my fault. Fixed it.