You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm checking source-map support with Haul, to consider moving over to it. I've got a simple Kotlin javascript module that just throws an exception, and I wanted to see if I can get a stack trace that references my Kotlin sources and line numbers. The compiled Kotlin JS files are located in the ./lib folder.
1. Why am I getting the same client exception for everything? Expected a string but was BEGIN_OBJECT
I'm getting a fairly useless stack-trace in the android client. I've gotten the same crash in the client for everything. Haul couldn't resolve the kotlin module, I got this exception. And I'm also seeing this exception when the client is throwing an exception.
Here is what I see:
React-native gives me a more useful exception, albeit without applying source-maps for some reason:
2. My stacktraces don't seem to take advantage of source-maps. How do I get them to?
3. How can I get webpack to see my local modules npm modules?
For some reason I can't get webpack to see and use the modules I have in my node_modules_local file. I've tried configuring it in my webpack.config.js and nothing seems to work. I've copied the modules into my node_modules directory for the time being which has allowed me to at least try and get this to work.
The text was updated successfully, but these errors were encountered:
Haul doesn't use webpack.config.js. So resolve.modules won't work unless you configure it in haul.config.js in transform. The error from 1st questions tells that the bundle is incorrect and it failed to load. The source-map-loader you applied in haul.config.js should do the job, if not, the support for the source maps from your kotlin lib is more of a Webpack problem and there's nothing magical in Haul to make that work.
Environment
Question
Hey! I have a few questions, and I was hoping someone could help me.
I created a branch of a small reproducer project here: https://github.com/ScottPierce/kotlin-react-native/tree/Haul2020
I'm checking source-map support with Haul, to consider moving over to it. I've got a simple Kotlin javascript module that just throws an exception, and I wanted to see if I can get a stack trace that references my Kotlin sources and line numbers. The compiled Kotlin JS files are located in the
./lib
folder.1. Why am I getting the same client exception for everything?
Expected a string but was BEGIN_OBJECT
I'm getting a fairly useless stack-trace in the android client. I've gotten the same crash in the client for everything. Haul couldn't resolve the
kotlin
module, I got this exception. And I'm also seeing this exception when the client is throwing an exception.Here is what I see:
React-native gives me a more useful exception, albeit without applying source-maps for some reason:
2. My stacktraces don't seem to take advantage of source-maps. How do I get them to?
3. How can I get webpack to see my local modules npm modules?
I'm following the instructions here: https://webpack.js.org/configuration/resolve/#resolvemodules
For some reason I can't get webpack to see and use the modules I have in my
node_modules_local
file. I've tried configuring it in mywebpack.config.js
and nothing seems to work. I've copied the modules into mynode_modules
directory for the time being which has allowed me to at least try and get this to work.The text was updated successfully, but these errors were encountered: