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

Fix/windows docs serve #3311

Merged
merged 4 commits into from
Apr 20, 2023
Merged

Fix/windows docs serve #3311

merged 4 commits into from
Apr 20, 2023

Conversation

m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Apr 6, 2023

Use pathe to handle Windows paths.

Update when-dependecies-installed package so it handles windows paths.

Closes #3296

@m0ksem m0ksem marked this pull request as ready for review April 6, 2023 19:40
@m0ksem m0ksem self-assigned this Apr 6, 2023
@m0ksem m0ksem added BUG Something isn't working build Build process labels Apr 6, 2023
@xiongmao86
Copy link
Contributor

xiongmao86 commented Apr 7, 2023

Sorry, @m0ksem, I'll follow your guide. I have git pull your fix/windows-docs-serve branch and yarn and testing with yarn build:analysis, the terminal console bailed an error:

Error vite build --config ./configs/vite/vite.button-select.ts exited with code 1
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "vite v4.2.1 building for production...
transforming...
✓ 1 modules transformed.
✓ built in 45ms
".] {
code: 'ERR_UNHANDLED_REJECTION'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Please ignore if the following message is not useful.

After that I have tried npx vite build --config ./config/vite/vite.button-select.ts, the console bailed out this message:

vite v4.2.1 building for production...
✓ 1 modules transformed.
✓ built in 45ms
[commonjs--resolver] Failed to resolve entry for package "vuestic-ui". The package may have incorrect main/module/exports specified in its package.json.
error during build:
Error: Failed to resolve entry for package "vuestic-ui". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/vite/dist/node/chunks/dep-79892de8.js:23266:11)
at resolvePackageEntry (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/vite/dist/node/chunks/dep-79892de8.js:23263:5)
at tryNodeResolve (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/vite/dist/node/chunks/dep-79892de8.js:23000:20)
at Object.resolveId (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/vite/dist/node/chunks/dep-79892de8.js:22762:28)
at file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/rollup/dist/es/shared/node-entry.js:24343:40
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async PluginDriver.hookFirstAndGetPlugin (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/rollup/dist/es/shared/node-entry.js:24243:28)
at async resolveId (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/rollup/dist/es/shared/node-entry.js:23187:26)
at async ModuleLoader.resolveId (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/rollup/dist/es/shared/node-entry.js:23451:15)
at async Object.resolveId (file:///C:/Users/xiongmao86/projects/vuestic-ui/packages/tailwind/node_modules/vite/dist/node/chunks/dep-79892de8.js:8006:10)

@m0ksem
Copy link
Collaborator Author

m0ksem commented Apr 8, 2023

After that I have tried npx vite build --config ./config/vite/vite.button-select.ts, the console bailed out this message:

vite v4.2.1 building for production...
✓ 1 modules transformed.
✓ built in 45ms
[commonjs--resolver] Failed to resolve entry for package "vuestic-ui". The package may have incorrect main/module/exports specified in its package.json.

@xiongmao86, please, make sure you reverted this change: #3296 (comment)

@xiongmao86
Copy link
Contributor

xiongmao86 commented Apr 9, 2023

Thanks, @m0ksem, I have git fetch upstream and git checkout fix/windows-docs-serve after make sure of
the right source code is checkout, I ran yarn --force and yarn build:anaylysis under packages/sandbox. That is not working either.

@m0ksem
Copy link
Collaborator Author

m0ksem commented Apr 20, 2023

I'm not able to reproduce it unfortunately, but will merge this PR because at least it fixes issues on my end.

@m0ksem m0ksem merged commit 934dfd7 into develop Apr 20, 2023
@xiongmao86
Copy link
Contributor

Thanks @m0ksem.

@xiongmao86
Copy link
Contributor

@m0ksem, can I ask what system the majority of you guys use to develop Vuestic-ui?

@m0ksem
Copy link
Collaborator Author

m0ksem commented Apr 21, 2023

@m0ksem, can I ask what system the majority of you guys use to develop Vuestic-ui?

Mostly Mac, but I also use Windows with WSL on a second machine.

@m0ksem m0ksem deleted the fix/windows-docs-serve branch May 3, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working build Build process
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Failed to yarn build:analysis at ./packages/sandbox/
2 participants