Comments (5)
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.
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.
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.
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.
Great, thanks.
from svelte-intellij.
Related Issues (20)
- Generated types dir is not recognized in Svelte compoenents HOT 6
- Update SvelteJSReferenceExpressionResolver for 223 intellij branch HOT 1
- Comment with Line Comment broken for <script> section of .svelte files HOT 3
- Support NPM Workspaces for "Go to Declaration" HOT 1
- Add support for `context="module"` HOT 2
- Add support for @const HOT 1
- delete is not highlighted as a keyword in "<script>" block HOT 3
- Support for "endpoints" tool window integration HOT 1
- Auto-import does not emit `import type` for types HOT 1
- "Rename" refactoring HOT 1
- destructed exports are not suggested HOT 1
- typescript declarations not working correctly for derived stores. HOT 1
- Unresolved variable for store when using TypeScript HOT 2
- No errors on missing 'type' imports HOT 2
- type errors not showing on component props HOT 2
- Exported functions from initialized components are "unresolved" HOT 4
- `typeof` not hinted/colored in Svelte files HOT 1
- Reference to `./$types` does not work in .svelte files but works in .ts files HOT 6
- Importing files with extension .js instead of .ts HOT 3
- Update on plugin release schedule HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-intellij.