-
Notifications
You must be signed in to change notification settings - Fork 73
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
1.1.2 outputs .json file instead of .js file #47
Comments
I guess it comes from 1.1.0...1.1.1#diff-85d664d316c6e5648ad0e423981ca864R42 |
it also includes the json file on the page even |
Same problem here. |
Author of https://reactql.org here - same thing is happening in my kit. Snippet of 1.1.0 (Webpack 2):
Now with 1.1.2 (Webpack 3):
In the browser: |
@diurnalist ? @TuckerCowie ? Someone? It's been 23 days this plugin no longer work. You could close this issue, #48, #49 and #50 in one row! |
Yes, it's broken after #29. |
Is there any motivation to fix this plugin? If #29 introduced the bug, any plans to roll it back? This one issue renders this plugin defunct. |
I don't understand the purpose of that patch, but maybe I'm missing something. Regardless, this also broke our app as well. Will lock version for now, but seems like a rollback is needed. |
For those that haven't done this themselves already: Go ahead and paste this in your terminal:
Or if you're using yarn:
And one more thing. Add
Until this problem gets fixed here I propose that you use the fork I made. Also if you want any change to the plugin feel free to post an issue/pull request in the repo. |
Thanks @DimitarNestorov - very helpful. I'll switch out to your version in the next ReactQL release. |
For others who prefer to rely on their own dependencies instead, you can easily fork this project, make the same change as #52, and merge your change into your master branch. Then, in your project that uses $ npm install --save-dev https://github.com/{your-username}/chunk-manifest-webpack-plugin For example (if you wanted to use my fork), $ npm install --save-dev https://github.com/sunyang713/chunk-manifest-webpack-plugin You don't have to change your require statement afterwards; it can remain exactly the same: // webpack.config.js
. . .
var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin')
. . . |
@diurnalist Are there any plans to resolve this issue? People switching to the backup repo is a bad thing as it will be hard to get these people switching back once this issue is resolved... |
It appears that something between 1.1.0 and 1.1.2 has changed the output from a .js file to a .json file. This is what appears in the
htmlWebpackPlugin
variable in each version:1.1.0:
1.1.2:
Since I have a custom template for HTMLWebpackPlugin that iterates over the
js
files, this throws an error because it's trying to load a JSON file as a<script src>
rather than a.js
file.The text was updated successfully, but these errors were encountered: