Giter VIP home page Giter VIP logo

Comments (5)

elliotwaite avatar elliotwaite commented on June 4, 2024 1

Ah, got it. Updated the title.

I just tested it and was still getting errors when the components were outside of the node_modules dir, but I think it's mainly an issue with the plugin not being able to find named exports. But I think adding node modules support will also cover making named exports work in general.

from svelte-intellij.

tomblachut avatar tomblachut commented on June 4, 2024

Thanks for reporting, but could you check if the title is correct? Support for node modules is ATM incomplete and I'm guessing this is the real issue here. Importing project's components should work.

from svelte-intellij.

elliotwaite avatar elliotwaite commented on June 4, 2024

Ah, if node modules aren't supported yet, that's probably the issue.

I'm not sure what you mean by checking if the title is correct. Can you clarify? The title of this GitHub issue, or the name of the imported component, or something else?

Also, I'm not sure if this is related, but the DrawerTitle component that I'm importing in the video demo is a component I'm developing for an NPM package, so it exists in two locations: in node_modules/@svelte-material/drawer (the node modules path) and in packages/drawer (the development path). And the node_modules/@svelte-material/drawer path just aliases to the packages/drawer path to allow for seamless development.

I'll have to check back in when node modules support is added to see if it also works for my dual location use case.

Thanks for your efforts.

from svelte-intellij.

tomblachut avatar tomblachut commented on June 4, 2024

Happy to help :)

I mean title of the GitHub issue. It says that named imports are problematic but I think we now agree that it's related to import path/node_modules and named imports work okay outside of that. I'd like you to check if that is in fact true or maybe there is another bug, and update title to match.

I'll have to check back in when node modules support is added to see if it also works for my dual location use case.

That would be great! It could be related but I don't have enough info right now to verify your situation with two locations. Anyway I hope node_modules fix will also help with that.

from svelte-intellij.

tomblachut avatar tomblachut commented on June 4, 2024

Great, thanks.

from svelte-intellij.

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.