Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

请问你是用什么工具开发和调试的? #57

Open
canyanol650 opened this issue Aug 10, 2018 · 1 comment
Open

请问你是用什么工具开发和调试的? #57

canyanol650 opened this issue Aug 10, 2018 · 1 comment

Comments

@canyanol650
Copy link

canyanol650 commented Aug 10, 2018

我使用vs code 只能使用 npm start 来启动项目。
平常使用vs code 可以调试 Express 的项目。
但是你的项目好像用了es6 的语法。启动调试的时候报
\app.js:1
(function (exports, require, module, __filename, __dirname) { import express from 'express'
^^^^^^^

SyntaxError: Unexpected identifier

查了原因好像是不支持 es6 的import 语法。
请问有没有解决办法?

@gaofq
Copy link

gaofq commented Mar 17, 2019

同问

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants