-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized option 'resolve' #88
Comments
To help investigating the issue, I've created a boilerplate of my project: https://github.com/Gotterbild/svelte-webpack-handlebars-koa-template To run it, you need to:
|
|
It seems that, like us, you use webpack3 (I saw What is the version of webpack you use ? |
@creaven Yes, there was error in @0gust1 I've checked my webpack version and it is Yes, we use But I'm not sure. Maybe some webpack plugin is the source of error. Can you post your webpack config, so we can compare plugins we're using and configuration options? I understand webpack 3 is a bit different, but who knows. |
@Gotterbild Yes, I think so. I made some analysis/debug of the code yesterday (more details below). I even have a pull request in progress. It could help a lot if you could test it on your side ! 😄 In your project, could you replace temporarily the content of Explanation :
btw, I talked about It's also not a problem in webpack configuration file by itself, but more a nasty bug related to the differences in webpack internal loader engine between webpack <4 and 4 |
@0gust1 It was a bit hacky as my setup is inside a docker container and node modules are cached, but I've managed to replace content of |
@0gust1 I've found a second to test if Svelte works as expected with your changes in place and it works like charm. |
@Gotterbild the PR was merged ! tell us if it does the job. |
@0gust1 Sorry, but it seems that GitHub didn't send me a notification about your message. But I did receive notification that this issue was closed so here I am. Two months have passed and we upgraded webpack to v4, so I can't test it with actual code. Also, I'm a bit busy to blow off the dust from older release versions of our project. And worth mention that we decided to use Vue in place of Svelte for several reasons. Anyway, it worked two months ago when I tested it, so why wouldn't it work now? To sum up everything listed, I won't test it. Sorry :) |
I'm considering using Svelte 3 as a replacement to JQuery. As an example for myself how that could work, I am trying to implement simple filter (text input that filters elements by name). I want to plant this filter deep inside existing HTML layout (actually, Handlebars layout).
Here's my webpack config:
My component file is called
diagrams-filter.svelte
and looks as dumb as it could be:I import this component like this:
And in my Handlebars template I have an element with
DiagramsFilter
id:What am I doing wrong? Or maybe I'm trying to do something that is not possible? Or maybe I'm trying to do something that is just not yet supported? Or it is just a bug?
Any advice will be appreciated. Thank you.
The text was updated successfully, but these errors were encountered: