Bug in new 0.1.* version
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior? Can’t build project. Version 0.0.2-alpha.0 works fine.
stacktrace:
ERROR in ./components/App.js
Module build failed: TypeError: /home/a/projects/dl/app/src/components/App.js: Cannot read property 'sourceMap' of undefined
at /home/a/projects/dl/app/node_modules/linaria/src/babel/lib/errorUtils.js:33:40
at Array.map (<anonymous>)
at enhanceFrames (/home/a/projects/dl/app/node_modules/linaria/src/babel/lib/errorUtils.js:32:17)
at Module._compile (/home/a/projects/dl/app/node_modules/linaria/src/babel/lib/moduleSystem.js:127:11)
at instantiateModule (/home/a/projects/dl/app/node_modules/linaria/src/babel/lib/moduleSystem.js:55:18)
at exports.default (/home/a/projects/dl/app/node_modules/linaria/src/babel/preval-extract/prevalStyles.js:60:34)
at PluginPass.TaggedTemplateExpression (/home/a/projects/dl/app/node_modules/linaria/src/babel/preval-extract/index.js:103:11)
at newFn (/home/a/projects/dl/app/node_modules/babel-traverse/lib/visitors.js:276:21)
at NodePath._call (/home/a/projects/dl/app/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/home/a/projects/dl/app/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitSingle (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:108:19)
at TraversalContext.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:192:19)
at Function.traverse.node (/home/a/projects/dl/app/node_modules/babel-traverse/lib/index.js:114:17)
at NodePath.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/path/context.js:115:19)
at TraversalContext.visitQueue (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitMultiple (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:103:17)
at TraversalContext.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:190:19)
at Function.traverse.node (/home/a/projects/dl/app/node_modules/babel-traverse/lib/index.js:114:17)
at NodePath.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/path/context.js:115:19)
at TraversalContext.visitQueue (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitMultiple (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:103:17)
at TraversalContext.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:190:19)
at Function.traverse.node (/home/a/projects/dl/app/node_modules/babel-traverse/lib/index.js:114:17)
at NodePath.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/path/context.js:115:19)
at TraversalContext.visitQueue (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitSingle (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:108:19)
at TraversalContext.visit (/home/a/projects/dl/app/node_modules/babel-traverse/lib/context.js:192:19)
at Function.traverse.node (/home/a/projects/dl/app/node_modules/babel-traverse/lib/index.js:114:17)
@ ./index.js 11:11-38
Please provide your exact Babel configuration and mention your Linaria, Node, Yarn/npm version and operating system.
linaria 0.1.3 Node 8.6.0 Yarn 1.0.1
.babelrc
{
"presets": [
"react-app",
"flow",
["env", {"targets": {"browsers": ["last 2 versions"]}}],
"linaria/babel"
],
"plugins": [
["transform-class-properties", { "spec": true }]
]
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
9 December, 2022 - 2.7.0.1 Update | Bug Reports Megathread
Ahoy! This thread is in place to centralise bug reporting for the 2.7.0 update, and improve visibility for Rare. Don't forget to also...
Read more >MultiVersus Open Beta v.0.1 patch notes released - EventHubs
There are quite a few bug fixes that are being implemented, but there are also a few notable changes. More specifically, Batman, Bugs...
Read more >BIG-IP 17.0.0.1 Fixes and Known Issues - AskF5 - F5 Networks
Enhanced application to accept new sessions under problem conditions. Fixed Versions: 17.0.0.1. 886649-6 : Connections stall when dynamic BWC ...
Read more >how to workaround npm "Error: Invalid version: "0.1" BUG?
I tried to fix the error manually by replacing "version": "0.1", with "version": "0.0.1", in package.json files in modules directories but there ...
Read more >Semantic Versioning 0.1.0
A bug fix is defined as an internal change that fixes incorrect behavior. Minor version Y (x.Y.z, x > 0) MUST be incremented...
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 FreeTop Related Reddit Thread
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
Top GitHub Comments
Yep, all works now )
I looked at linaria website webpack config, pretty similar to my: