Open pgangwani opened 4 months ago
I tried this tsconfig change. it didnt work.
Hi @pgangwani ,
I have the same problem since we have build multi packages. I would be happy to find a solution 😀
Hi @pgangwani ,
I have the same problem since we have build multi packages. I would be happy to find a solution 😀
Let me try few simple things.
I see one option to add nx tooling to it. Thoughts?
In pnpm a package in node_modules
that refers to a workspace is just a symlink to that workspace.
So it's more of a vite concern than a pnpm one. Try the following:
packages/react-oidc/package.json
and in scripts
replace the value of build
with vite build --sourcemap inline
pnpm run build
examples/react-oidc-demo
and run pnpm start
You should be able to see the source code in your browser devtool.
Note that you will need to run steps 2 and step 3 every time you make a change in packages/react-oidc
in order to regenerate the sourcemap
In pnpm a package in
node_modules
that refers to a workspace is just a symlink to that workspace.So it's more of a vite concern than a pnpm one. Try the following:
- go to
packages/react-oidc/package.json
and inscripts
replace the value ofbuild
withvite build --sourcemap inline
- go back to the root of the project and run
pnpm run build
- then go to
examples/react-oidc-demo
and runpnpm start
You should be able to see the source code in your browser devtool. Note that you will need to run steps 2 and step 3 every time you make a change in
packages/react-oidc
in order to regenerate the sourcemap
Amazing leme try
Issue and Steps to Reproduce
I was trying to debug logout function by running examples/react-oidc-demo where I noticed that because we are using pnpm workspace, code is coming from node_modules upon install/build.![Screenshot 2024-02-20 at 10 17 29 AM](https://github.com/AxaFrance/oidc-client/assets/14316332/012558ec-b7b1-4cd8-ae79-d663e37753c8)
How can I get actual source with same files(sourcemap) to debug it much better ?
Versions
all
Screenshots
Expected
Need to know how to debug in packages while running the example
Actual
Not finding right doc
Additional Details