Open fisherspoons opened 2 years ago
I don't think [name].js?v=[fullhash]
works as filename. I guess you expected to have a file named [name.js]
with the full hash in the query string of the URL when accessing it. But then, that's not the filename anymore.
I don't think
[name].js?v=[fullhash]
works as filename. I guess you expected to have a file named[name.js]
with the full hash in the query string of the URL when accessing it. But then, that's not the filename anymore.
Yes, I try to add the version to the filename, I remove it, but the problem remains. In CSS files it cannot resolve the file path, but in JS files there are no jquery imports, just using $
.autoProvidejQuery() nothing effect
.configureFilenames({
js: '[name].js',
css: '[name].css',
})
I have already spent a lot of time and I do not understand what could be the problem?
addEntry('skins_js.min', [
'./web/sites/skins/libs/jquery/dist/jquery.min.js',
'./web/sites/skins/libs/slider/slick.min.js',
'./web/sites/skins/libs/vibrant/vibrant.min.js',
'./web/sites/skins/js/common.js'
])
"./web/sites/skins/libs/slider/slick.min.js" contains a reference to the file "jquery".
This file can not be found, please check it for typos or update it if the file got moved.
Perhaps this is related to babel, tell me where to look?
Well, if you want webpack to auto-provide jquery
for non-UMD/non-ESM packages, you still need to have jquery
in your project as part of the dependencies.
@weaverryan maybe we should check the presence of jquery
in dependencies when using .autoProvidejQuery()
That is a good idea 👍
Were you able to resolve this?
Hi, I am upgrading symphony version and need to migrate to webpack-encore. But when compiling files, I get a very strange error, it happens when compiling js and css files.
package.json
webpack-config
When I try use build I have errors
I found same problem https://github.com/symfony/stimulus-bridge/issues/47 but it did not help