Skip to content

I can't import image files like .png .jpg or even .css files #74

@regalfaith

Description

@regalfaith

I using this boilerplate for my electron app.
But when I try to import image files like .png it gets an error
The debugging message is:
Uncaught SyntaxError: Invalid or unexpected token
at new Script (vm.js:74)
at createScript (vm.js:246)
at Object.runInThisContext (vm.js:298)
at Module._compile (internal/modules/cjs/loader.js:678)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:722)
at Module.load (internal/modules/cjs/loader.js:620)
at tryModuleLoad (internal/modules/cjs/loader.js:559)
at Function.Module._load (internal/modules/cjs/loader.js:551)
at Module.require (internal/modules/cjs/loader.js:658)
at require (internal/modules/cjs/helpers.js:20)

And I can't even import .css files
I think it seems like I can only import .js files or node modules
How can I import .png files on js code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions