Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module #5

Open
andreyan-andreev opened this issue May 4, 2016 · 2 comments
Open

Error: Cannot find module #5

andreyan-andreev opened this issue May 4, 2016 · 2 comments

Comments

@andreyan-andreev
Copy link

import { Something } from "../Something";

Something.ts

export class Something {}

will result in:

javax.script.ScriptException: Error: Cannot find module ../Something in <eval> at line number 141 at column number 6

This works perfectly fine if the imported file is in the path where the importing file is or under it. If the file is above then the error occurs.

Using 1.2.0 snapshot with j2v8 (3.1.1 same with 3.1.6)

@michel-kraemer
Copy link
Owner

Is the file that import Something.ts in the root of your classpath maybe? Files outside the classpath cannot be loaded.

If this does not apply, please send me a small example project so I can reproduce the issue.

@andreyan-andreev
Copy link
Author

thanks for taking time to respond, I will try to prepare the example sometime next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants