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

[Bug]: Windows でビルドに失敗する #19

Open
mantaroh opened this issue Dec 4, 2023 · 0 comments
Open

[Bug]: Windows でビルドに失敗する #19

mantaroh opened this issue Dec 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mantaroh
Copy link
Collaborator

mantaroh commented Dec 4, 2023

📝 Issue Description / 問題の説明

#15 (comment)

Windows でビルドしようとしたユーザーで以下のエラーが発生する。

$ npm run dev-jp

    [email protected] dev-jp
    spear watch --file spear.config-jp

[Parse components]
[Component]: left-sidebar
[Component]: main-component
[Component]: spear-head

[Parse Pages]

[Parse Pages]

[Parse Pages]

[Parse Pages]

[Parse Pages]

[Parse Pages]
[Page]: [alias](https://github.com/basic)

[Parse Pages]
[Page]: [alias](https://github.com/embed)

[Parse Pages]
[Page]: index(/)

[Parse Pages]
[Page]: build(/intro)
[Page]: install(/intro)

C:\Users\haru0\spear-doc\node_modules\axios\dist\node\axios.cjs:1913
reject(new AxiosError(
^
AxiosError: Request failed with status code 401
at settle (C:\Users\haru0\spear-doc\node_modules\axios\dist\node\axios.cjs:1913:12)
at IncomingMessage.handleStreamEnd (C:\Users\haru0\spear-doc\node_modules\axios\dist\node\axios.cjs:2995:11)
at IncomingMessage.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1408:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ERR_BAD_REQUEST',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/vnd.spearly.v2+json',
'Content-Type': undefined,
Authorization: 'Bearer ',
'User-Agent': 'axios/1.5.1',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
baseURL: 'https://api.spearly.com/',
method: 'get',
url: '/content_types/settings/contents/site?distinct_id=d2641f88-1ebc-432d-8556-8b2b571d9f82',
data: undefined
},

📋 On which page(s) it occurs / 問題のあるページ

N/A

🤔 Expected Behavior / 期待結果

Windows でビルド可能にする

👀 Current Behavior / 現在の動き

axios で 401エラーが発生する

🖥️ Browser / ブラウザ

N/A

📄 Additional Information

No response

@mantaroh mantaroh added the bug Something isn't working label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant