Giter Club home page Giter Club logo

Comments (12)

matthewp avatar matthewp commented on May 5, 2024 2

Hey, thanks for filing! Going to try and look into this this week. Thanks so much for putting up with early bugs like this :)

from astro.

matthewp avatar matthewp commented on May 5, 2024 1

I have an example working, will post in a minute.

from astro.

gqio avatar gqio commented on May 5, 2024 1

Ok I can confirm it works,
Something should have changed regarding this between the 0.0.9 and the 0.0.12 In very good day.

Thanks.

from astro.

gqio avatar gqio commented on May 5, 2024

Hi,

If I may add some investigation with latest version of astro, I cannot source any component outside of the astro root.

It would be really helpful in mono repo to source components from another directory
Sourcing from node_modules and package would be also really nice.

Thanks

from astro.

georges-gomes avatar georges-gomes commented on May 5, 2024

Hi @matthewp we are stuck here because our components live outside of the repo due the exact nature of what we want to demonstrate. Is there a way to fix it this week? I'm not trying to urge the situation, we simply running out of time on our end...

from astro.

matthewp avatar matthewp commented on May 5, 2024

Yeah sorry, I'll give this a look and update this issue.

from astro.

matthewp avatar matthewp commented on May 5, 2024

I get this error when I try, is that what you get @gqio ?

Error: Unexpected: Unscanned package import couldn't be built/resolved.

from astro.

gqio avatar gqio commented on May 5, 2024

Yes, I tried with configuring the packageRoot with snowpack, but no luck.

Maybe I missed something.

from astro.

matthewp avatar matthewp commented on May 5, 2024

Here's an example: https://github.com/matthewp/astro-local-project-example

The key is adding a snowpack.config.js and setting workspaceRoot. Snowpack doesn't work well with locally installed packages without that. Something we should fix in Snowpack.

from astro.

gqio avatar gqio commented on May 5, 2024

That's weird I tried exactly the same thing according to the doc of snowpack (took me a while to understand :))

I just tried your repository, it works also with npm link.

from astro.

gqio avatar gqio commented on May 5, 2024

I will give another shot with a more complex repo/components base
I have components in different languages, hope it will work too.

Do you have an hint if snowpack or astro will watch and update those dependenies?
I mean if I change a file inside the node_modules, does snowpack with its cache reflect the change while astro is loading the page during the build.

from astro.

matthewp avatar matthewp commented on May 5, 2024

It should, yeah.

from astro.

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.