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

The problem of adding a module developed with dojo2 to a project using Dojo1 #246

Open
datakomDev opened this issue Apr 6, 2018 · 1 comment

Comments

@datakomDev
Copy link

When I add the files that I compiled via "> dojo build" to the exist project, I do not get any errors, but the command like a "alert (root);" that I put in "main.ts" was not executed.

main.bundled and runtime.bundled files load succesfully but main.ts cannot run. Is there problem about harmony between dojo1 and dojo2?

@datakomDev
Copy link
Author

datakomDev commented Apr 10, 2018

I tried loading the dojo1 firstly. But it didn't work.

`<script>
......
DK_AddHead("main.c511b248e888c9a3faefa6b1627d35aa.bundle.css");
DK_AddHead("runtime.d41d8cd98f00b204e980.bundle.js");
DK_AddHead("main.d246978047ba64b3c03e.bundle.js");
DK_AddHead("dojo-release-1.13.0/dojo/dojo.js");
...
var req_lst = ["dojo/_base/declare", "dojo/window", "dojo/dom",.............
require(req_lst, function(pi_declare, pi_win, pi_dom...........................

</script> `

Uncaught ReferenceError: require is not defined at index.html:545

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

1 participant