I have a monorepo that looks similar to this,
- myapp
- packages
- web
- components
- libraries
The webroot of the app is myapp/packages/web when I run yarn serve in that file path I get the vue app running, what I want to do is debug the code in my vscode, but I can't seem to set breakpoints.
My launch.json looks like this,
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "webapp",
"url": "http://localhost:8081",
"webRoot": "${workspaceFolder}",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack:///./*": "${webRoot}/*"
},
"skipFiles": [
"${workspaceFolder}/node_modules/**/*"
]
}
]
}
If I set a breakpoint in myapp/packages/web/src/components/MyComponent.vue vscode tells me,
Some of your breakpoints could not be set
Is there a reason why? The project is a lerna mono repo so I pull in code from packages/components & packages/library also.