Skip to content

Missing important information from documentation for react typescript integration #252

@GeorgeCrisan

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

don't you think is paramount to mention that given these are the defaults?

I wasted hours and hours trying 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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions