question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack example is referencing undefined values

See original GitHub issue

Looking 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:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
chriseppsteincommented, May 14, 2018

@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.

2reactions
chriseppsteincommented, May 6, 2018

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:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found