Closed Pos-cmd closed 5 months ago
Do you have a minimal reproduction repo? I can't seem to reproduce this, also on Windows 10 and Node 18.
Perhaps there is an issue with your build system being unable to import CommonJS named exports. In that case you can try using the default export instead:
import sse from "better-sse";
const { createSession } = sse;
Thank you this work well mow.
### Description: I encountered a SyntaxError while attempting to import the 'better-sse' package in my project. The error specifically states:
### Problem: Despite having the 'better-sse' package installed, I'm unable to utilize the 'createSession' export, which is essential for my project.
### Environment: Operating System: Windows 10 Package Manager: pnpm Node version: 18 Steps to Reproduce: Install 'better-sse' package using pnpm. Import 'better-sse' and attempt to use 'createSession' export. Expected Behavior: I expected to be able to import and use the 'createSession' export from the 'better-sse' package without encountering a SyntaxError.
### Actual Behavior: The SyntaxError mentioned above occurs when attempting to import 'better-sse'.
### Additional Information: I have verified that the package is correctly installed. My project relies on this functionality, so resolving this issue is crucial.