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

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

@canyanol650

Description

@canyanol650

我使用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 语法。
请问有没有解决办法?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions