Codesandbox-client: Cannot read property 'Expression' of undefined

Created on 4 Jun 2018  路  8Comments  路  Source: codesandbox/codesandbox-client

馃悰 Bug report

Description of the problem

In a couple of sandboxes now, I keep getting this error when compiling Vue projects:

https://codesandbox.io/static/js/sandbox.7b01ecfb.js:259:340177
r.<anonymous>
https://codesandbox.io/static/js/sandbox.7b01ecfb.js:259:342540
g
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:10482
Generator._invoke
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:10270
Generator.e.(anonymous function) [as next]
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:10661
n
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:45137
(anonymous function)
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:45278
new t
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:97647
Worker.<anonymous>
https://codesandbox.io/static/js/common-sandbox.405431f9.js:21:45072
Worker.<anonymous>
https://codesandbox.io/static/js/sandbox.7b01ecfb.js:259:343695
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser鈥檚 developer console to further inspect this error.
This error overlay is powered by `react-error-overlay` used in `create-react-app`.

Links to sandboxes

Your Environment

| Software | Name/Version|
| ---------------- | ---------- |
| 小odesandbox | Online
| Browser | Chrome 66.0.3359.181
| Operating System | OSX 10.12.6

Not sure if this can be looked at urgently, but was going to use CS to submit files for an interview test this morning! If you have any workarounds in the interim of looking at it, that would be great.

I thought this was maybe just the code in one of my sandboxes, but I guess it's something to do with
CS internals now.

Cheers,
Dave

Most helpful comment

I'll take a look at it now!

All 8 comments

I'll take a look at it now!

Hmm, it seems like this is using vue-cli v3, which we don't officially support yet since it's using Babel 7. I'll check now if the error is fixable.

Ahh, that would make sense.

I'm completely happy to rebuild the project using Vue CLI 2 if that's the case.

LMK :P

Hmm, I'm afraid that I cannot fix it right now. The fix is very easy though, if you remove:

    "@vue/cli-plugin-babel": "^3.0.0-beta.9",
    "@vue/cli-plugin-eslint": "^3.0.0-beta.9",
    "@vue/cli-service": "^3.0.0-beta.9",
    "@vue/eslint-config-standard": "^3.0.0-beta.9",

from the package.json we will see it as a vue-cli: 2.0 project and it will work.

I'll keep this open to track my progress on vue v3 support.

The fix is very easy though, if you remove ...

That's great!

Thanks Ives, hugely appreciated as always.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Issue closed due to lack of activity

Was this page helpful?
0 / 5 - 0 ratings