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

预览报错,一直无法预览 #28

Open
zh793060640 opened this issue May 9, 2024 · 2 comments
Open

预览报错,一直无法预览 #28

zh793060640 opened this issue May 9, 2024 · 2 comments

Comments

@zh793060640
Copy link

[Compile Result] SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' [index.js:SyntaxError15:SyntaxError: SyntaxError1: 'import' and 'export' may appear only with 'sourceType: module' [FormData.js:'import' and 'export' may appear only with 'sourceType: module': ]
[Compile Result] 'import' and 'export' may appear only with 'sourceType: module' [SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'15URLSearchParams.js::1 [] [settle.js17
[Compile Result] :SyntaxError: :3:1transformData.jsSyntaxError]:
[Compile Result] 1SyntaxError: 'import' and 'export' may appear only with 'sourceType: module']'import' and 'export' may appear only with 'sourceType: module':SyntaxError [: index.js'import' and 'export' may appear only with 'sourceType: module' [
[Compile Result] 3:upload.js'import' and 'export' may appear only with 'sourceType: module'1 [AxiosURLSearchParams.js [combineURLs.jsSyntaxError:SyntaxError17:SyntaxError: : SyntaxError]: SyntaxError:SyntaxError: 'import' and 'export' may appear only with 'sourceType: module''import' and 'export' may appear only with 'sourceType: module'SyntaxError: :11: 'import' and 'export' may appear only with 'sourceType: module' [SyntaxError: 15:3::'import' and 'export' may appear only with 'sourceType: module''import' and 'export' may appear only with 'sourceType: module' [:1]'import' and 'export' may appear only with 'sourceType: module' [isAbsoluteURL.js'import' and 'export' may appear only with 'sourceType: module'11]: [ [:parseHeaders.js [ [
[Compile Result] http.js:10:download.jstransitional.jstoURLEncodedForm.js:'import' and 'export' may appear only with 'sourceType: module'173:1]
[Compile Result] : [17::1]
[Compile Result] ::3113adapters.js1:1:index.js]:
[Compile Result] ]1]SyntaxError: 1
[Compile Result] ::]1SyntaxError]
[Compile Result] 1: ]
[Compile Result] :]'import' and 'export' may appear only with 'sourceType: module'SyntaxError
[Compile Result] SyntaxError
[Compile Result] [: : SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' [dispatchRequest.js:validator.js1'import' and 'export' may appear only with 'sourceType: module' ['import' and 'export' may appear only with 'sourceType: module']:'import' and 'export' may appear only with 'sourceType: module'
[Compile Result] SyntaxError3 [buildURL.js:: [buildFullPath.js:133:3: 'import' and 'export' may appear only with 'sourceType: module' []SyntaxError:SyntaxErrorInterceptorManager.js: :data.js1SyntaxError:1]]SyntaxError:SyntaxError
[Compile Result] 'import' and 'export' may appear only with 'sourceType: module' [HttpStatusCode.js: 1: : ::
[Compile Result] SyntaxError
[Compile Result] 'import' and 'export' may appear only with 'sourceType: module'1]
[Compile Result] : 'import' and 'export' may appear only with 'sourceType: module' [1SyntaxError: 'import' and 'export' may appear only with 'sourceType: module''import' and 'export' may appear only with 'sourceType: module'3'import' and 'export' may appear only with 'sourceType: module' [ [toFormData.js:FormData.js: [: ]
[Compile Result] [index.js6962'import' and 'export' may appear only with 'sourceType: module'spread.js:isAxiosError.js::1]SyntaxError3: [::241::1SyntaxError:]formDataToJSON.js:1: 3:1
[Compile Result] 1]]3'import' and 'export' may appear only with 'sourceType: module'
[Compile Result] SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'SyntaxError:
[Compile Result] ]
[Compile Result] 'import' and 'export' may appear only with 'sourceType: module' [CanceledError.js:33 [:1'import' and 'export' may appear only with 'sourceType: module']SyntaxError [CancelToken.js
[Compile Result] : ]'import' and 'export' may appear only with 'sourceType: module'
[Compile Result] :isCancel.js1 [ []bind.js:AxiosHeaders.js:
[Compile Result] 1SyntaxError:: :SyntaxError'import' and 'export' may appear only with 'sourceType: module' [3:]3:3: 'import' and 'export' may appear only with 'sourceType: module'SyntaxErrorAxiosError.jsSyntaxError::: 'import' and 'export' may appear only with 'sourceType: module' [ [:: SyntaxErrorindex.js3
[Compile Result] 'import' and 'export' may appear only with 'sourceType: module'3: 1:1:1:'import' and 'export' may appear only with 'sourceType: module'mergeConfig.js111]] []:1
[Compile Result] ]Axios.js
[Compile Result] : []
[Compile Result] 3
[Compile Result] :3axios.js:1]:]
[Compile Result] :
[Compile Result] 3
[Compile Result] :SyntaxError1]: 1
[Compile Result] 'import' and 'export' may appear only with 'sourceType: module' [utils.js:3:]
[Compile Result] 1]
[Compile Result] the size of programs is expected to be 105, but is 64
[Compile Result] Compile error occurred. Fix it based on the above message.

@WinWang
Copy link
Owner

WinWang commented May 9, 2024

axios框架目前还不支持预览模式加载数据

@zh793060640
Copy link
Author

懂了,感谢,刚开始搞鸿蒙,那是不是说明他的预览只能支持静态数据,如果走网络数据都无法预览吗?

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

2 participants