Cannot read properties of undefined when I import another package #4806
-
Hello, I'm trying to make my project to monorepo using yarn berry but something is wrong. Directory is like this:
And I wrote import uuid from 'uuid';
const id = uuid.v4();
export default id; I already installed VSCode plugins via But I noticed that If I try to run
and also occur same error when using this module into another project:
I tried my best to solve it today, but I cannot find any answer.. Did I forgot any process? How can I use Thanks to read my questions, and I would appreciate it if you could solve it :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry, this is a problem caused by my misunderstanding with uuid module.. |
Beta Was this translation helpful? Give feedback.
Sorry, this is a problem caused by my misunderstanding with uuid module..
uuid module doesn't offer default export.
It works now.
Sorry for useless question.