Git Product home page Git Product logo

nuxt3-awesome-starter's People

Contributors

viandwi24 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuxt3-awesome-starter's Issues

Vscode bug on pages

On pages inside a subfolder of pages folder (example: pages/post/index.vue) I have a bug with VScode: it says composables functions are not defined, and an error with the import, see the image below:
image

Do you have the same problem? It's a problem I have with my project too, and I didn't find a fix :/

localePath is not a function

I'm trying to get the proper URLs for the locale but i get this : [nitro] [dev] [unhandledRejection] TypeError: _ctx.localePath is not a function

has this disappeared? :to="localePath('index')"

Question about some components like PageWrapper

I'm looking at the templates you have in your .vue files and I'm seeing things like PageWrapper and PageBody PageSection PageHeader... where exactly are these things coming from? I can't find any references to them other than their uses.

[typescript template] not working - help wanted

Just downloaded the project. Installed all dependencies with pnpm, shamefully hoist and all those caveats known in PNPM.

Changed a few things in About page and then I noticed something.

I am getting Type checking in ts files. I am also getting Type checking within .vue files within the <script> tags.

image

However, when it comes to getting Type checking I do not get any type checking regarding props of imported components. I only get type inference for things within the "self" script tag.

See below:

image
image

Basically, any component that is external to the current file, used in template is being typed as any. I have no clue why this is happening. Do you have any ideia?

[unhandledRejection] Cannot set headers after they are sent to the client

When I execute npm run dev, Command line has an error.

image

Environment

- System:          `Windows 10`
- Node Version:     `v16.18.1`

Describe the bug

 ERROR  [unhandledRejection] Cannot set headers after they are sent to the client            17:33:19

  at new NodeError (node:internal/errors:387:5)
  at ServerResponse.setHeader (node:_http_outgoing:644:11)
  at sendError (/D:/Workplace/nuxt3-starter/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:189:18)
  at Server.toNodeHandle (/D:/Workplace/nuxt3-starter/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:927:15)
  at runMicrotasks (<anonymous>)
  at processTicksAndRejections (node:internal/process/task_queues:96:5)

changes lose due husky and lint stash backup

.husky/pre-commit: line 4: yarn: command not found husky - pre-commit hook exited with code 127 (error) husky - command not found in PATH=/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin

I have cloned the repository, and made some changes.
When I tried to commit, this error appear:

.husky/pre-commit: line 4: yarn: command not found
husky - pre-commit hook exited with code 127 (error)
husky - command not found in PATH=/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin

I have done all sorts of stuff, but error consists.. Please kindly help me..
https://dev.to/studiospindle/using-husky-s-pre-commit-hook-with-a-gui-21ch
https://stackoverflow.com/questions/67063993/sh-husky-command-not-found

Why slut?

Please explain the naming being slut.vue.

I mean, Github starting using main instead of master coz of the whole slave-master thing despite the context being to computers. This a whole another level.

Screenshot 2022-12-09 at 21 49 18

Unable to select "none" as the Button component's type

If I select "none" for the Button's type prop, the selectedStyles defaults to "primary" classes as:
const selectedStyle = computed(() => styles[props.type] || styles.primary)
evaluates styles['none'] as false as it's an empty string.

Instead, it should return an empty string.

Cannot find package 'c12' imported from

after installing node modules i got this error
ERROR Cannot start nuxt: Cannot find package 'c12' imported from C:\Users\Moham\Desktop\Git Repos\my-nuxt3-app\node_modules\nuxt-windicss\node_modules@nuxt\kit\dist\index.mjs

JWT Auth

Hello would you mind add JWT auth for this project? Thank you.

Vue Router and intlify Warning

this is realy awesome starter for nuxt3
but I am getting Vue Router and intlify Warning
etc:

  1. [Vue Router warn]: No match found for location with path "/__webpack_hmr"
  2. [intlify] Not found 'banners.welcome' key in 'ko' locale messages.
    [intlify] Fall back to translate 'banners.welcome' key with 'en' locale.
    Could you have solution?

VueUse

Hi i didnt know why this is red marked

Wr8L9hv
.

ERROR No "exports" main defined in /Users/****/node_modules/@nuxt/kit/package.json

Installing any dependencies will report the following error, please advise

 ERROR  No "exports" main defined in /Users/****/node_modules/@nuxt/kit/package.json                        21:45:18

  at new NodeError (node:internal/errors:393:5)
  at throwExportsNotFound (node:internal/modules/esm/resolve:358:9)
  at packageExportsResolve (node:internal/modules/esm/resolve:612:7)
  at resolveExports (node:internal/modules/cjs/loader:529:36)
  at Module._findPath (node:internal/modules/cjs/loader:569:31)
  at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)                                                    21:45:18
  at Function.resolve (node:internal/modules/cjs/helpers:109:19)
  at resolveModule (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.f17c7643.mjs:17:29)
  at importModule (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.f17c7643.mjs:37:24)
  at loadKit (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.ede95f37.mjs:5:18)

vscode setup

Can you share or explain your vscode setup because I am getting lots of Unknown at rule @apply scss(unknownAtRules) in .vue files

how to disable preflight in this project?

I'm new to tailwind and I came across the default style removal from html elements. I found in the documentation how to disable it, but it doesn't work.
Captura de Tela 2022-10-24 às 09 46 43
Here the code I put in my project based on yours.
Captura de Tela 2022-10-24 às 09 51 22

V2 Major Update

i plan to change the structure for the better, and work on integrating with Nuxt Layers.
this is one very nice feature, which is that others can easily extend this template with their own templates.

To Dos

  • #60
    • create modules ~/modules/awesome.ts
  • Adding Pinia
    • auto import "defineStore" as "definePiniaStore"
    • auto import folder "stores"
  • Eslint & Prettier
  • 🌙 Theme Switcher (light, dark, system)
  • Easy App Config
    • App Meta (title, authors)
    • Layout (navbar menus)

Using extendBuild in Nuxt 3 has no effect.

I keep getting this warn on yarn dev. How do one get rid of it

WARN [kit] [compat] Using extendBuild in Nuxt 3 has no effect. Instead call extendWebpackConfig and extendViteConfig.

👀 3 Variable Problems

😊 nice to again meet you 🎉

✔First Problem
const to = toRef(props, 'to') in Anchor.vue
const to = props.to in Button.vue
👀 what is best way to get value from props?

✔Second Problem
const props = defineProps({
type: {
type: String,
default: 'primary'
},
title: {
type: String,
default: undefined
},
text: {
type: String,
default: undefined
}
}) in Alert.vue
👀why do you use default = undefined insteadof string empty?

✔Third Problem
CardTitle.vue

<script lang="ts" setup> defineProps({ text: { type: String, default: '' } }); </script>
**{{ text }}**

why do you use tag with {{ text }}?
I checked that it don't need
right?

Template is unlicensed

Hi there,

I would love to use this template for my website.
Unfortunately, there is no license.
Would you be so kind and add one :)

Thank you in advance

one problem

When I refresh the page after switch languages, and the three-line prompt on the first page overlaps.

Text input not reactive

I fixed issue for myself by replacing @input="onInput" and :value="modelValue" with v-model="modelValue"
and olso onInput method is not needed anymore
image

aspect ratio doesn't work

The aspect-ratio is not working. The project is the same as yours, I just added the extra video.

Node.js version = v16.14.2

[vite] Internal server error: Undefined variable.

following the quickstart leads to an error on unspecified variables sass variables. I am not sure what I am missing

     Error: Undefined variable.
      ╷
   4 │       $color1 20%,
      │       ^^^^^^^
     pages/index.vue 4:7  root stylesheet

and also

Error: Undefined variable.
   ╷
 3 │   font-family: $fontFamily !important;
   │                ^^^^^^^^^^^
   ╵
   assets/sass/app.scss 3:16  root stylesheet
   ```

ERROR Cannot find module 'unplugin-vue-components/vite'

I created a new project in nuxt 3

npx nuxi@latest init testproject
cd testproject

Add a nuxt.config extends:

cat nuxt.config.ts 
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  extends: 'github:viandwi24/nuxt3-awesome-starter'
})

And install dependencies and get this error

pnpm install
Lockfile is up to date, resolution step is skipped
Already up to date

> nuxt-app@ postinstall /testproject
> nuxt prepare

Nuxi 3.6.2

 ERROR  Cannot find module 'unplugin-vue-components/vite'                                                                                                                                                         6:01:33 p. m.
Require stack:
- /home/jag2kn/.cache/c12/github_viandwi24_nuxt3-awesome-starter/nuxt.config.ts

  Require stack:
  - /home/jag2kn/.cache/c12/github_viandwi24_nuxt3-awesome-starter/nuxt.config.ts
  at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
  at Function.resolve (node:internal/modules/cjs/helpers:108:19)
  at _resolve (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:250100)
  at jiti (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:252409)
  at /home/jag2kn/.cache/c12/github_viandwi24_nuxt3-awesome-starter/nuxt.config.ts:1:198
  at evalModule (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:255106)
  at Object.jiti (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:253034)
  at resolveConfig (node_modules/.pnpm/[email protected]/node_modules/c12/dist/index.mjs:280:24)
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async extendConfig (node_modules/.pnpm/[email protected]/node_modules/c12/dist/index.mjs:217:21)

problem with hotReload..

sometimes i have to restart "yarn dev" and refresh browser..
maybe its just nuxt3 , maybe Tailwind

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.