-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hello,
Thank you for the nice work. I tried to build the extension by cd into the extension folder and running pnpm build. I receive "import and export cannot be used outside of module code" error. I used the following but I couldn't manage to pass this error: I varied latest nodejs 20 and latest nodejs 18 with latest pnpm and latest plasmo (even updating it to 85.0). May be the environment setup is different or do you have a suggestion?
fuzzy-search@0.0.7 build /workspaces/proxy-for-llms/chat-with-page/chatwithpage-extension
plasmo build
🟣 Plasmo v0.83.0
🔴 The Browser Extension Framework
🟠 WARN | A new version of plasmo is available: v0.85.0
| Run "pnpm i plasmo@0.85.0" to update
🔵 INFO | Prepare to bundle the extension...
🔵 INFO | Loaded environment variables from: []
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
🔴 ERROR | 'import', and 'export' cannot be used outside of module code
🔴 EXIT | 👋 Good bye and have a great day!
ELIFECYCLE Command failed with exit code 1.