Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行直接抱错,请问需要怎么处理呢 #1

Closed
hekejian opened this issue Jan 29, 2020 · 3 comments
Closed

运行直接抱错,请问需要怎么处理呢 #1

hekejian opened this issue Jan 29, 2020 · 3 comments

Comments

@hekejian
Copy link

import { Object as LCObject, Query, ACL } from 'leanengine';
^^^^^^

SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:1067:16)
at Module._compile (internal/modules/cjs/loader.js:1115:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
[nodemon] app crashed - waiting for file changes before starting...

@TechQuery
Copy link
Member

Mac OS X 容易出现 ts-node 运行时不编译的 bug,你先把前端代码里的 localhost:3000 改成 vsw505fxbitp.leanapp.cn 直连测试服务器吧

@hekejian
Copy link
Author

get

@TechQuery TechQuery pinned this issue Jan 30, 2020
@Marla62
Copy link

Marla62 commented Feb 2, 2020

同样遇到此问题

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

No branches or pull requests

3 participants