Skip to content

Cannot find module #1710

@nimo23

Description

@nimo23

I have the node_modules in the root-directory of my Eclipse Maven project. How can I tell wwd where to look for this node module to fix the following issue ("Cannot find module.."):

app-tsx

Do I need to configure this in my tsconfig.js?

{
	"compilerOptions": {
		"baseUrl": ".",
		"rootDir": ".",
		"module": "esnext",
		"target": "ES2015",
		"lib": [
			"es6",
			"dom"
		],
		"sourceMap": true,
		"jsx": "react",
		"moduleResolution": "node",
		"strict": true,
		"forceConsistentCasingInFileNames": true,
		"noImplicitReturns": true,
		"noImplicitThis": true,
		"noImplicitAny": false,
		"allowJs": true,
		"esModuleInterop": true,
		"allowSyntheticDefaultImports": true,
		"paths": {
			"@app/*": [
				"src/app/*"
			],
			"@assets/*": [
			]
		},
		"importHelpers": true,
		"skipLibCheck": true
	},
	"include": [
		"**/*.ts",
		"**/*.tsx",
		"**/*.jsx",
		"**/*.js"
	],
	"exclude": [
		"node_modules"
	]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions