Skip to content
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

how to use path-to-regexp in this template #40

Open
Totoro1998 opened this issue Mar 23, 2021 · 0 comments
Open

how to use path-to-regexp in this template #40

Totoro1998 opened this issue Mar 23, 2021 · 0 comments

Comments

@Totoro1998
Copy link

Totoro1998 commented Mar 23, 2021

how to use path-to-regexp in this template
when i use path-to-regexp in this template
here wii be a error

node_modules/react-router/esm/react-router.js:9:7: error: No matching export in "node_modules/path-to-regexp/dist.es2015/index.js" for import "default"
9 │ import pathToRegexp from 'path-to-regexp';
╵ ~~~~~~~~~~~~

error when starting dev server:
Error: Build failed with 1 error:
node_modules/react-router/esm/react-router.js:9:7: error: No matching export in "node_modules/path-to-regexp/dist.es2015/index.js" for import "default"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant