-
-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Description
Describe the bug
I've recently started getting an error with the arguments inside exported functions that are being marked as exports.
So if I have export function useReactiveMedia(source, callback) then useReactiveMedia, source and callback all get marked as exports for that file and will break my build if they're used anywhere else (thus generating an import for them).
So in the repo linked below, you will receive a:
Uncaught SyntaxError: The requested module 'http://localhost:5174/src/composables/useCan.js' doesn't provide an export named: 'options'
error because the useTest.js file gets this prepended in its output:
import { options } from "/src/composables/useCan.js";UPDATE
Traced the issue back to unjs/unimport version 5.7.0+. Suggest you lock to 5.6.0 until they fix it.
Reproduction
https://github.com/craigrileyuk/auto-import-jsdoc-issue
System Info
System:
OS: macOS 13.7.8
CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Memory: 82.22 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 25.5.0 - ~/.nvm/versions/node/v25.5.0/bin/node
npm: 11.8.0 - ~/.nvm/versions/node/v25.5.0/bin/npm
pnpm: 10.28.2 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 145.0.7632.117
Firefox: 148.0
Safari: 18.6Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels