Closed vvisigoth closed 5 years ago
Is your working JS valid? Any problems in the code? If gulp compilation is erroring then it's choking on the build just coincidentally as you're restarting it.
And confirm that your reproduction was just npm install
, npm start
,
npm run serve
, cancel, npm run serve
?
For example, if I introduce bad syntax in my JS and run npm run serve
, it spits this out:
> create-landscape-app@0.2.2 serve /Users/matilde/git/tmp/create-landscape-app
> gulp watch
[16:20:37] Using gulpfile ~/git/tmp/create-landscape-app/gulpfile.js
[16:20:37] Starting 'watch'...
[16:20:37] Starting 'default'...
[16:20:37] Starting 'bundle-dev'...
[16:20:37] Starting 'css-bundle'...
[16:20:37] Starting 'js-bundle-dev'...
[16:20:37] Starting 'tile-js-bundle-dev'...
[16:20:37] Starting 'jsx-transform'...
[16:20:37] Starting 'tile-jsx-transform'...
[16:20:37] Finished 'tile-jsx-transform' after 218 ms
[16:20:37] Starting 'tile-js-imports'...
[16:20:37] 'jsx-transform' errored after 262 ms
[16:20:37] SyntaxError in plugin "@sucrase/gulp-plugin"
Message:
Error when processing file /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Error transforming /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Unexpected token (10:18)
Details:
pos: 288
loc: [object Object]
domainEmitter: [object Object]
domainThrown: false
[16:20:37] 'js-bundle-dev' errored after 276 ms
[16:20:37] 'bundle-dev' errored after 277 ms
[16:20:37] 'default' errored after 277 ms
[16:20:37] 'watch' errored after 279 ms
[16:20:37] The following tasks did not complete: css-bundle, tile-js-bundle-dev, tile-js-imports
[16:20:37] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! create-landscape-app@0.2.2 serve: `gulp watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the create-landscape-app@0.2.2 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/matilde/.npm/_logs/2019-08-31T20_20_37_699Z-debug.log
It's this part that tells me what's up:
Message:
Error when processing file /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Error transforming /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Unexpected token (10:18)
That 10:18, that points me to the syntax error I created. The bottom half of this is identical to your issue here, so looking for that message is the thing to do I think.
Wait, I made a mistake?
On Sat, Aug 31, 2019 at 1:22 PM Matilde Park notifications@github.com wrote:
For example, if I introduce bad syntax in my JS and run npm run serve, it spits this out:
create-landscape-app@0.2.2 serve /Users/matilde/git/tmp/create-landscape-app gulp watch
[16:20:37] Using gulpfile ~/git/tmp/create-landscape-app/gulpfile.js [16:20:37] Starting 'watch'... [16:20:37] Starting 'default'... [16:20:37] Starting 'bundle-dev'... [16:20:37] Starting 'css-bundle'... [16:20:37] Starting 'js-bundle-dev'... [16:20:37] Starting 'tile-js-bundle-dev'... [16:20:37] Starting 'jsx-transform'... [16:20:37] Starting 'tile-jsx-transform'... [16:20:37] Finished 'tile-jsx-transform' after 218 ms [16:20:37] Starting 'tile-js-imports'... [16:20:37] 'jsx-transform' errored after 262 ms [16:20:37] SyntaxError in plugin "@sucrase/gulp-plugin" Message: Error when processing file /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Error transforming /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Unexpected token (10:18) Details: pos: 288 loc: [object Object] domainEmitter: [object Object] domainThrown: false
[16:20:37] 'js-bundle-dev' errored after 276 ms [16:20:37] 'bundle-dev' errored after 277 ms [16:20:37] 'default' errored after 277 ms [16:20:37] 'watch' errored after 279 ms [16:20:37] The following tasks did not complete: css-bundle, tile-js-bundle-dev, tile-js-imports [16:20:37] Did you forget to signal async completion? npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! create-landscape-app@0.2.2 serve:
gulp watch
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the create-landscape-app@0.2.2 serve script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/matilde/.npm/_logs/2019-08-31T20_20_37_699Z-debug.log
It's this part that tells me what's up:
Message: Error when processing file /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Error transforming /Users/matilde/git/tmp/create-landscape-app/src/js/components/root.js: Unexpected token (10:18)
That 10:18, that points me to the syntax error I created. The bottom half of this is identical to your issue here, so looking for that message is the thing to do I think.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/urbit/create-landscape-app/issues/12?email_source=notifications&email_token=AAMJBY2BL3YGQQT2ST45QODQHLHHJA5CNFSM4ISUVMK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TUSWY#issuecomment-526862683, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMJBY22EVICEQFSPRJOCO3QHLHHJANCNFSM4ISUVMKQ .
-- — ~poldec-tonteg http://urbit.org
I don't know. Did you? If you look higher up in your terminal and its error messages you'll see the module that errored out and what it errored on.
That was a joke of course I made a syntax error.
On Sat, Aug 31, 2019 at 1:46 PM Matilde Park notifications@github.com wrote:
I don't know. Did you? If you look higher up in your terminal and its error messages you'll see the module that errored out and what it errored on.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/urbit/create-landscape-app/issues/12?email_source=notifications&email_token=AAMJBY4QMA7KKQZLSBCRBZDQHLKBDA5CNFSM4ISUVMK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TU5NI#issuecomment-526864053, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMJBY5ST443O6MBHDLLE7DQHLKBDANCNFSM4ISUVMKQ .
-- — ~poldec-tonteg http://urbit.org
On my phone, plz close.
On Sat, Aug 31, 2019 at 1:53 PM Anthony Arroyo anthony@tlon.io wrote:
That was a joke of course I made a syntax error.
On Sat, Aug 31, 2019 at 1:46 PM Matilde Park notifications@github.com wrote:
I don't know. Did you? If you look higher up in your terminal and its error messages you'll see the module that errored out and what it errored on.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/urbit/create-landscape-app/issues/12?email_source=notifications&email_token=AAMJBY4QMA7KKQZLSBCRBZDQHLKBDA5CNFSM4ISUVMK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TU5NI#issuecomment-526864053, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMJBY5ST443O6MBHDLLE7DQHLKBDANCNFSM4ISUVMKQ .
-- — ~poldec-tonteg http://urbit.org
-- — ~poldec-tonteg http://urbit.org
I killed process and then get this on restart. Wat do?