#Reason for "Following modules were not evaluated"

6 messages · Page 1 of 1 (latest)

slow roost
#

What is the reason for "Following modules were not evaluated; make sure they are imported from other code". As far as I can tell it requires me to add esm_entry_point if my deno extension has esm files. Why cant I add esm and use it later in side module and not in entry point? or am I missing something?

slow roost
twin elbow
#

If you are snapshotting there must be an entry point. You can use it "later" - all files passed to extension must be evaluated before snapshot is created

twin elbow
#

Oh sorry - it should have been you can't use it "later"

slow roost
#

so my esm_entry_point file will just import all modules and not do anything in it? seems redundant

twin elbow
#

You have to explicit import all the files you list in esm configuration in your esm_entry_point - otherwise you will get this panic. Yes, it's a bit redundant, but it's a sanity check that you don't snapshot some files that don't get used.