Git Product home page Git Product logo

astros's People

Contributors

dependabot[bot] avatar diploidal avatar gowtham2003 avatar thebigsasha avatar zanhk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

astros's Issues

getting error while running

hi,
i am getting this error while i run yarn dev

An integration attempted to inject a route that is already used in your project: "/_image" at "node_modules/@astrojs/image/dist/endpoint.js".
  This route collides with: "node_modules/astro/dist/assets/image-endpoint.js".

[WARN] [vite] The glob option "as" has been deprecated...

I’m getting the following error in the terminal, working locally, as soon as the browser reloads after a file change:

[WARN] [vite] The glob option "as" has been deprecated in favour of "query". Please update `as: 'raw'` to `query: '?raw', import: 'default'`.

Then no file changes will fire a browser reload. And even if I save changes in a file, forcing refresh in the browser won't show the file update.

I use Brave but thought it might be a browser issue so tested in Firefox, Chrome, and Safari with same results.

I have ZERO experience with Vite and have done extensive searches looking for the fix before posting here.

Cloudflare Pages deployment failing

Hi - I am deploying the repo as is into Cloudflare Pages, and I am getting the below error. But in my local it is running fine.

19:21:47.352 | Executing user command: npm run build
-- | --
19:21:48.192 |  
19:21:48.207 | > [email protected] build
19:21:48.207 | > astro build
19:21:48.207 |  
19:21:50.041 | 12:21:50 AM [vite] Pre-transform error: Failed to load url hast-util-to-string (resolved id: hast-util-to-string) in /opt/buildhome/repo/plugins/rehype-autolink-config.ts. Does the file exist?
19:21:50.042 | 12:21:50 AM [vite] Pre-transform error: Failed to load url hastscript (resolved id: hastscript) in /opt/buildhome/repo/plugins/rehype-autolink-config.ts. Does the file exist?
19:21:50.055 | 12:21:50 AM [vite] Error when evaluating SSR module /plugins/rehype-autolink-config.ts: failed to import "hast-util-to-string"
19:21:50.055 | \|- Error: Cannot find module 'hast-util-to-string' imported from '/opt/buildhome/repo/plugins/rehype-autolink-config.ts'
19:21:50.056 | at nodeImport (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50234:25)
19:21:50.056 | at ssrImport (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50141:30)
19:21:50.056 | at eval (/opt/buildhome/repo/plugins/rehype-autolink-config.ts:3:50)
19:21:50.056 | at instantiateModule (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50203:15)
19:21:50.056 |  
19:21:50.056 | 12:21:50 AM [vite] Error when evaluating SSR module /opt/buildhome/repo/astro.config.mjs: failed to import "/plugins/rehype-autolink-config.ts"
19:21:50.056 | \|- Error: Cannot find module 'hast-util-to-string' imported from '/opt/buildhome/repo/plugins/rehype-autolink-config.ts'
19:21:50.056 | at nodeImport (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50234:25)
19:21:50.057 | at ssrImport (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50141:30)
19:21:50.057 | at eval (/opt/buildhome/repo/plugins/rehype-autolink-config.ts:3:50)
19:21:50.057 | at instantiateModule (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50203:15)
19:21:50.057 |  
19:21:50.057 | 12:21:50 AM [vite] Pre-transform error: Failed to load url html-escaper (resolved id: html-escaper) in /opt/buildhome/repo/plugins/rehype-autolink-config.ts. Does the file exist?
19:21:50.057 | [astro] Unable to load your Astro config
19:21:50.057 |  
19:21:50.515 | Cannot find module 'hast-util-to-string' imported from '/opt/buildhome/repo/plugins/rehype-autolink-config.ts'
19:21:50.515 | Stack trace:
19:21:50.515 | at nodeImport (file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50234:25)
19:21:50.516 | at eval (/opt/buildhome/repo/plugins/rehype-autolink-config.ts:3:50)
19:21:50.679 | Failed: Error while executing user command. Exited with error code: 1
19:21:50.688 | Failed: build command exited with code: 1
19:21:51.659 | Failed: error occurred while running build command

Category Pages for the Blog

I would like to have category pages implemented to improve the navigation and organization of the content. Currently, it is difficult to browse through specific topics or find related articles. Adding category pages (as in Astros) would enhance user experience and make it easier for our readers to discover content that is relevant to their interests.

Expected Behavior:
When a user clicks on a category link or selects a category from the navigation menu, they should be directed to a dedicated page that displays all the articles related to that specific category. The category page should provide a clear overview of the available articles and allow users to easily navigate between them.

i18n isn't working properly

Hey! I've downloaded the template and installed all necessary dependencies. However, upon running the project with npm run dev, the language strings show their fallback form, like you can see here:
image

Me and some others attempted to locate the mistake, but were unsuccessful.

Error local dev

bun install v1.1.0 (5903a614)
error: Failed to run script \astros\node_modules@vite-pwa\assets-generator\node_modules\sharp[eval] due to error Unexpected (, subshells are currently not supported right now. Escape the ( or open a GitHub issue.

error: install script from "sharp" exited with 1

TypeError - esm/i18next.js error - Cannot read properties of undefined (reading 'toResolveHierarchy')

Error details:-

TypeError: Cannot read properties of undefined (reading 'toResolveHierarchy')
at setLngProps (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/i18next/dist/esm/i18next.js:2262:58)
at setLng (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/i18next/dist/esm/i18next.js:2288:13)
at I18n.changeLanguage (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/i18next/dist/esm/i18next.js:2306:9)
at E:\jay\codestuff\NewProjects\ProjectAd\Landingpage\astros\src\pages\index.astro:10:1
at index (E:\jay\codestuff\NewProjects\ProjectAd\Landingpage\astros\node_modules\astro\dist\runtime\server\astro-component.js:18:12)
at callComponentAsTemplateResultOrResponse (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/astro/dist/runtime/server/render/astro/render.js:85:31)
at renderToReadableStream (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/astro/dist/runtime/server/render/astro/render.js:35:32)
at renderPage (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/astro/dist/runtime/server/render/page.js:29:18)
at renderPage (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/astro/dist/core/render/core.js:45:26)
at #tryRenderRoute (file:///E:/jay/codestuff/NewProjects/ProjectAd/Landingpage/astros/node_modules/astro/dist/core/pipeline.js:99:24)

Screenshot (96)

localized text is not shown on local build

Hello
I successfully deployed a newly cloned Astros on netlify, it works correctly. However, when I build that same repo locally with "npm run build" and then "npm run preview" the all the localized texts are not shown, instead just placeholders like "hero.title" or "hero.main_button_text" are displayed. Same with "npm run dev".

sshot

I'm not sure what I'm doing wrong. I tried using the same node and npm versions as netlify but my local build keeps failing at showing the translated text.

Logs and warning look the same on netlify and in local.

Could you please help me troubleshooting this issue?
Thank you very much

Do you know why cloudflare is giving me this issue?

I am importing NewsLetter.astro. local build is working on both macos and windows.

2023-10-29T20:49:25.977166Z	Cloning repository...
2023-10-29T20:49:27.383549Z	From https://github.com/Parthvsquare/astro_dummy
2023-10-29T20:49:27.384268Z	 * branch            b0e59da503007c5cf006de2848058436d0501bed -> FETCH_HEAD
2023-10-29T20:49:27.384464Z	
2023-10-29T20:49:27.605025Z	HEAD is now at b0e59da fix: newletter
2023-10-29T20:49:27.605901Z	
2023-10-29T20:49:27.71448Z	
2023-10-29T20:49:27.745771Z	Success: Finished cloning repository files
2023-10-29T20:49:28.620114Z	Detected the following tools from environment: [email protected], [email protected]
2023-10-29T20:49:28.620986Z	Installing project dependencies: npm clean-install --progress=false
2023-10-29T20:49:33.473848Z	npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
2023-10-29T20:49:33.515907Z	npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2023-10-29T20:49:36.609531Z	npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
2023-10-29T20:49:41.935274Z	
2023-10-29T20:49:41.936939Z	added 936 packages, and audited 937 packages in 12s
2023-10-29T20:49:41.937308Z	
2023-10-29T20:49:41.937519Z	285 packages are looking for funding
2023-10-29T20:49:41.937677Z	  run `npm fund` for details
2023-10-29T20:49:41.952922Z	
2023-10-29T20:49:41.954025Z	5 low severity vulnerabilities
2023-10-29T20:49:41.954492Z	
2023-10-29T20:49:41.955645Z	To address issues that do not require attention, run:
2023-10-29T20:49:41.955995Z	  npm audit fix
2023-10-29T20:49:41.956513Z	
2023-10-29T20:49:41.956841Z	To address all issues (including breaking changes), run:
2023-10-29T20:49:41.957014Z	  npm audit fix --force
2023-10-29T20:49:41.957189Z	
2023-10-29T20:49:41.957335Z	Run `npm audit` for details.
2023-10-29T20:49:41.978247Z	Executing user command: npm run build
2023-10-29T20:49:42.827443Z	
2023-10-29T20:49:42.827778Z	> [email protected] build
2023-10-29T20:49:42.827955Z	> astro build
2023-10-29T20:49:42.828109Z	
2023-10-29T20:49:45.723108Z	08:49:45 PM [content] The "team" collection does not have an associated folder in your `content` directory. Make sure the folder exists, or check your content config for typos.
2023-10-29T20:49:45.724026Z	08:49:45 PM [content] Types generated 594ms
2023-10-29T20:49:45.725331Z	08:49:45 PM [build] output target: static
2023-10-29T20:49:45.72577Z	08:49:45 PM [build] Collecting build info...
2023-10-29T20:49:45.728409Z	08:49:45 PM [build] Completed in 731ms.
2023-10-29T20:49:45.730695Z	08:49:45 PM [build] Building static entrypoints...
2023-10-29T20:49:49.088389Z	�[31m[vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "@components/NewsLetter.astro" from "/opt/buildhome/repo/src/pages/vuestorefront-headless-ecommerce.astro".
2023-10-29T20:49:49.088797Z	This is most likely unintended because it can break your application at runtime.
2023-10-29T20:49:49.089081Z	If you do want to externalize this module explicitly add it to
2023-10-29T20:49:49.08949Z	`build.rollupOptions.external`�[39m
2023-10-29T20:49:49.422038Z	 error   [vite]: Rollup failed to resolve import "@components/NewsLetter.astro" from "/opt/buildhome/repo/src/pages/vuestorefront-headless-ecommerce.astro".
2023-10-29T20:49:49.422543Z	  This is most likely unintended because it can break your application at runtime.
2023-10-29T20:49:49.423063Z	  If you do want to externalize this module explicitly add it to
2023-10-29T20:49:49.423533Z	  `build.rollupOptions.external`
2023-10-29T20:49:49.423741Z	Error: [vite]: Rollup failed to resolve import "@components/NewsLetter.astro" from "/opt/buildhome/repo/src/pages/vuestorefront-headless-ecommerce.astro".
2023-10-29T20:49:49.423891Z	This is most likely unintended because it can break your application at runtime.
2023-10-29T20:49:49.424028Z	If you do want to externalize this module explicitly add it to
2023-10-29T20:49:49.42418Z	`build.rollupOptions.external`
2023-10-29T20:49:49.424311Z	    at viteWarn (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-df561101.js:48142:27)
2023-10-29T20:49:49.424446Z	    at onwarn (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-react/dist/index.mjs:247:9)
2023-10-29T20:49:49.424582Z	    at onRollupWarning (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-df561101.js:48171:9)
2023-10-29T20:49:49.424724Z	    at onwarn (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-df561101.js:47902:13)
2023-10-29T20:49:49.424858Z	    at file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:24194:13
2023-10-29T20:49:49.424993Z	    at Object.logger [as onLog] (file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:25867:9)
2023-10-29T20:49:49.425163Z	    at ModuleLoader.handleInvalidResolvedId (file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:24780:26)
2023-10-29T20:49:49.425309Z	    at file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:24740:26
2023-10-29T20:49:49.459519Z	Failed: Error while executing user command. Exited with error code: 1
2023-10-29T20:49:49.481444Z	Failed: build command exited with code: 1
2023-10-29T20:49:50.428347Z	Failed: error occurred while running build command```

i got this log in cloudflare

Fix theme flashing

Whenever the page gets reloaded, there is an undesirable flash of the light theme when the OS is set to dark. Would the Alpine persist plugin fix that?

Error deploy on Cloudflare

When trying to deploy on Cloudflare through the button, I follow all the steps to connect the account but at the moment of initialization, an error occurs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.