How to property use createRoot
when using custom entries? (export 'default' (imported as 'App') was not found)
#6027
Unanswered
AllenAttuned
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set up a simple app which is utilizing the custom entry feature of Modern.js:
src/entry.tsx
Docs .Based on the docs, creating a file
src/entry.jsx
, and setting thesource.enableCustomEntry
to be truthy, should allow you to define a custom entry point into the application, rather than Modern.js assumingsrc/App.jsx
is the entry.However, using the following
src/entry.jsx
causes Modern.js to fail with this error:My
src/App.tsx
contains the following (using named exports also fails):The
createRoot
docs suggest that its argument is optional, and if not provided will use the default fromsrc/App.tsx
. This error occurs regardless of if the argument is provided or not. RelevantcreateRoot
source.I have the following
modern.config.ts
which is customized to produce an SPA which is to be served statically.Here's some diagnostics about my system:
14.4.1
v20.10.0
/ NPM10.2.3
v17.0.2
v2.57.0
(recently upgraded - the error also occurred onv2.56.2
Beta Was this translation helpful? Give feedback.
All reactions