Skip to content

Missing important information from documentation for react typescript integration #252

Description

@GeorgeCrisan

Hi,

It is impossible to make this tutorial work https://www.electronforge.io/guides/framework-integration/react-with-typescript#src-renderer.ts
following step by step.
The template comes with;

  nodeIntegration: false,
  contextIsolation: true,

which are causing the application to break

index.js:584 Uncaught ReferenceError: __dirname is not defined at index.js:584:84 at index.js:1644:12

I think is paramount to mention that these are the defaults and that the user needs to be compromise security for having the tutorial running successful.

I tried for hours to find a workaround this but is not possible.
it only works if you enable node integration and run without isolation which is a security risk.

Any thoughts?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions