codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.11k stars 2.29k forks source link

module resolution issue in vue3 #6046

Closed eunjae-lee closed 3 years ago

eunjae-lee commented 3 years ago

🐛 bug report

Preflight Checklist

Description of the problem

My sandbox fails to run with "ModuleNotFoundError".

image

When I download the sandbox as zip, it works locally.

How has this issue affected you? What are you trying to accomplish?

It should successfully resolve the module and run.

To Reproduce

Visit the sandbox, and you will see the error right away.

Link to sandbox: link

Your Environment

Software Name/Version
Сodesandbox e37e8f3a5
Browser Firefox 91.0 (64-bit)
Operating System macOS BigSur 11.5.2
DeMoorJasper commented 3 years ago

Hey, thanks for reporting this error, will look into this later today and keep you updated

eunjae-lee commented 3 years ago

Thanks :)

DeMoorJasper commented 3 years ago

Went digging into the errors and found this file, which our resolver stumbles on as it thinks it's a json file: https://unpkg.com/browse/vue-instantsearch@4.0.0-beta.1/dist/vue3/es/package.json.js

Opened a PR with a fix: https://github.com/codesandbox/codesandbox-client/pull/6050

eunjae-lee commented 3 years ago

@DeMoorJasper thanks, it works fine!