-
-
Couldn't load subscription status.
- Fork 476
Closed
Copy link
Labels
🐛 bugSomething isn't workingSomething isn't working
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Steps to reproduce
- Create a normal Next.js project without the Flowbite quick start command.
- Install and configure Sentry
- Run
npx flowbite-react@latest initto install Flowbite React - Check if you have a syntax error in
next.config.mjs
Current behavior
The command wraps the withSentryConfig function around the withFlowbiteReact function in next.config.mjs.
The original function looks something like this:
export default withSentryConfig(nextConfig, {
[...]
});
But when you run the command you end up with this:
export default withFlowbiteReact(withSentryConfig(nextConfig, {)
[...]
});
If you look at the end of the first line you can see a misplaced parentheses that causes a syntax error.
Expected behavior
We would expect the command to wrap around the withSentryConfig function like this:
export default withFlowbiteReact(withSentryConfig(nextConfig, {
[...]
}));
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done