Attempted import error: 'Prompt' is not exported from 'react-router-dom'.
时间: 2023-10-30 18:09:01 浏览: 307
SVN出现提示org.apache.subversion.javahl.ClientException: Attempted to lock an already-locked dir解决方案
5星 · 资源好评率100%
This error occurs when you try to import the `Prompt` component from the `react-router-dom` package, but it is not found in the package.
To fix this error, you may need to check your import statement and make sure you are importing the correct component from the correct package. Alternatively, you can try updating your `react-router-dom` package to the latest version to see if the `Prompt` component has been added in a recent update.
阅读全文