-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router is not a constructor #127
Comments
From changelog:
Also see kriasoft/react-starter-kit#1403 and kriasoft/react-starter-kit#1233 |
Hi, I am having this issue too when adding universal-router 4 and 5 to my project. I am using create-react-app. It works with version 3. According to create-react-app code, they added mjs extension in rule loader. To reproduce this issue just create an empty project with create-react-app and change
How can I do to have it working? For version 5 in my project I was able to import from |
@javiermatos it because facebook/create-react-app#3537 is not yet released, you can use version from master or wait a little bit. |
Thank you @frenzzy, it worked. |
Hi! I am using universal router with your react-starter-kit. I've upgraded there universal router to latest version (4.2.0).
I am getting error that Router is not a constructor. console.log result is
/assets/node_modules/universal-router/browser.mjs?05fd4504
. It's just a string. Where is the magic? What I am doing wrong?The text was updated successfully, but these errors were encountered: