H
H
heIIfire2017-09-14 10:15:34
webpack
heIIfire, 2017-09-14 10:15:34

Why is webpack not finding the module?

when I do an import like this, it gives an error, they say I can’t find the module, but this is how everything works, please explain what kind of magic
import something from "test_module"
import something from "./test_module"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2017-09-14
@mannaro

The first entry imports from node_modules by default.
The second entry imports by relative path.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question