DenoDDeno
Powered by
capo_grecoC
Denoβ€’2y agoβ€’
10 replies
capo_greco

Fresh: front end import map goes where?

hey team - I am trying to use threejs in my blog posts
I am using this blog template: https://github.com/capogreco/blog_template
where would I put an import map for front end javascript module imports?
I tried putting one in the PostPage function in [slug].tsx but I don't think it likes having JSON in the JSX ?
error: Uncaught (in promise) TypeError: The module's source code could not be parsed: Expected '}', got ':' 
error: Uncaught (in promise) TypeError: The module's source code could not be parsed: Expected '}', got ':' 
GitHub
GitHub - capogreco/blog_template: Deno Fresh Blog Template
Deno Fresh Blog Template. Contribute to capogreco/blog_template development by creating an account on GitHub.
GitHub - capogreco/blog_template: Deno Fresh Blog Template
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Import map
SpixySSpixy / help
3y ago
import_map support
caseybaggzCcaseybaggz / help
4w ago
Force await import() to import a fresh copy?
SembianceSSembiance / help
3y ago
import_map.json not working
MqxMMqx / help
2y ago