Coder Social home page Coder Social logo

Comments (14)

wypratama avatar wypratama commented on August 12, 2024 2

hi @danielroe, I managed to fix it by adding:
typescript: { includeWorkspace: true, },
to the nuxt.config.ts inside .playground. Thanks!

from starter.

danielroe avatar danielroe commented on August 12, 2024

Would you provide a reproduction? 🙏

from starter.

avxkim avatar avxkim commented on August 12, 2024

@danielroe i think this must be documented or set by default, what do you think?

from starter.

danielroe avatar danielroe commented on August 12, 2024

I believe this is set by default in the layer starter, but if it isn't working we should raise a new issue (with reproduction) first - and then update.

from starter.

avxkim avatar avxkim commented on August 12, 2024

No, i'm using module starter and it's not.

from starter.

danielroe avatar danielroe commented on August 12, 2024

Oh. This issue was about the layers starter. The Nuxt module starter uses new stub mode by default. Are you using that?

from starter.

avxkim avatar avxkim commented on August 12, 2024

Guess no :) how can i use it?

from starter.

danielroe avatar danielroe commented on August 12, 2024

Check the module branch on this repo.

from starter.

avxkim avatar avxkim commented on August 12, 2024

if you mean this: https://github.com/nuxt/starter/tree/module
i've cloned this repo and it has issues without typescript: { includeWorkspace: true, } in nuxt.config.ts

from starter.

danielroe avatar danielroe commented on August 12, 2024

Do you have a reproduction? Feel free to create an issue to track it!

from starter.

avxkim avatar avxkim commented on August 12, 2024

@danielroe
test-module.zip

  1. pnpm i
  2. pnpm dev
  3. take a look at "src/runtime/components/test.vue
image

It doesn't have .nuxtrc by default (i mean module starter, but layer does)

I also created PR: #685

from starter.

danielroe avatar danielroe commented on August 12, 2024

@avxkim that is actually correct. It is flagging up an issue you will have when you publish the module to npm, where auto imports are not supported.

from starter.

avxkim avatar avxkim commented on August 12, 2024

@danielroe but even if i use imports, like this:

import { ref } from '#imports' it still flags it as error. Are you sure we don't need .nuxtrc ?

from starter.

danielroe avatar danielroe commented on August 12, 2024

Can you provide a reproduction? 🙏

from starter.

Related Issues (20)

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.