Skip to content

TypeError: Failed to resolve module specifier "react-dom" #909

Answered by gr2m
rauschma asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to reproduce the problem. When building and running the a static server using the build folder as root, it works without problems. But if I run the server in parent folder and open e.g. http://localhost:8080/build/counting-clicks.html I get error.

Steps to reproduce with https://github.com/rauschma/minimal-react

npm run build
npx servor .
# now open http://localhost:8080/build/counting-clicks.html

I'm not yet very familiar with the code base, but I hope that will help to narrow down what the problem might be (/cc @FredKSchott).

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@FredKSchott
Comment options

Answer selected by rauschma
Comment options

You must be logged in to vote
8 replies
@gr2m
Comment options

@KonnorRogers
Comment options

@FredKSchott
Comment options

@FredKSchott
Comment options

@Iteratum
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants