Skip to content

requirejs-config misunderstanding? #1622

Closed
@RanzigeMilch

Description

@RanzigeMilch

Hi all,

i have an own module in app/code/Namespace/Module.
In this module there is in /view/frontend a requirejs-conig.js
with:
var config = {
map: {
'*': {
test:'Namespace_Module/js/test'
}
}
};

The test.js is under /view/frontend/web/js.
In my theme (Namespace/name/) is a customfuncs.js under /web/js

This file is included in my layout default_head_blocks.xml

I have following require-statement in this customfuncs:
require(['jquery','test'], function(I$){}

I get an 404 for /pub/static/frontend/Namespace/themename/de_DE/test.js"

Do i have a misunderstanding with registering resources in modules or is there a mistake i dont see?

Greets

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions