Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cjs failure #3

Closed
danielroe opened this issue Mar 6, 2021 · 2 comments
Closed

cjs failure #3

danielroe opened this issue Mar 6, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@danielroe
Copy link
Member

when passing in { format: 'cjs' } I get the following error:

 ERROR  The "path" argument must be of type string. Received undefined                                    12:19:22

  at validateString (internal/validators.js:124:11)
  at dirname (path.js:1128:5)
  at t.transform.Object.assign.legacy (node_modules/jiti/dist/jiti.js:1:40213)
  at Function.f [as transform] (node_modules/jiti/dist/jiti.js:1:40499)
  at jsLoader (node_modules/mkdist/dist/index.js:35:44)
  at processTicksAndRejections (internal/process/task_queues.js:93:5)
  at async loadFile (node_modules/mkdist/dist/index.js:83:23)
  at async vueLoader (node_modules/mkdist/dist/index.js:57:24)
  at async loadFile (node_modules/mkdist/dist/index.js:83:23)
  at async Object.mkdist (node_modules/mkdist/dist/index.js:115:21)
@pi0
Copy link
Member

pi0 commented Mar 6, 2021

Needs reproduction :)

@danielroe
Copy link
Member Author

https://codesandbox.io/s/confident-darwin-csuwq?file=/src/index.js:84-100

@danielroe danielroe added the bug Something isn't working label Mar 6, 2021
pi0 added a commit to unjs/jiti that referenced this issue Mar 6, 2021
@pi0 pi0 closed this as completed in 85a24be Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants