Webpack example is referencing undefined values
See original GitHub issueLooking at https://github.com/linkedin/css-blocks/tree/master/packages/@css-blocks/webpack
The typical JSX end-to-end integration with webpack looks like this:
is referencing
const CssBlockAnalyzer = new CssBlocks.Analyzer(paths.appIndexJs, jsxCompilationOptions);
where both paths
and jsxCompilationOptions
are undefined. jsxCompilationOptions
is also referenced later in the plugin inclusion definition.
It would be awesome if you could provide a complete end to end example of how to integrate with Webpack or add example values for those properties.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Unexpected undefined while import with Webpack
I have a problem that has never happened to me before: I'm compiling a little basic starter browser web app (with React) using...
Read more >minimization bug (Cannot read property '...' of undefined) #334
"Uncaught TypeError: Cannot read property 'x' of undefined" when running "webpack" in production mode (function(A) { (function() { doPrint() ...
Read more >CssMinimizerWebpackPlugin | webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >MiniCssExtractPlugin - webpack
The mini-css-extract-plugin supports hot reloading of actual css files in development. Some options are provided to enable HMR of both standard stylesheets and ......
Read more >Module Federation - webpack
ContainerReferencePlugin (low level). This plugin adds specific references to containers as externals and allows to import remote modules from these containers.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bitttttten We want to support projects that don’t use typescript. We thought that https://github.com/linkedin/css-blocks/commit/97cd2e46d0c08dbc05b2610ccfa4f4de1793de20 addressed that aspect. Please file a separate issue about typescript being required with details and we’ll get it sorted out.
regarding the state of the documentation, we’re a brand new project, and so our documentation is certain to miss use cases or be incomplete. That’s why this is a developer preview release and not a 1.0. Please help us improve by providing constructive suggestions. Thanks.
Hi @nonken, sorry the example isn’t correct. We’ll tidy that up.
In the meantime, you can look at how our website is configured or at one of these minimal apps: