Skip to content

Missing files in Grundfile.js #46

@CodeCommerce

Description

@CodeCommerce

I had a problem, when generating js / css via grunt

"Uncaught TypeError: Class extends value undefined is not a constructor or null" "class BaseComponent extends Config"

needed to add files to Grundfile.js into concat: ..

`concat: {
            js: {
                options: {
                    separator: ';\n',
                    sourcemap: false
                },
                files: {
                    '<%= project.out %><%= project.theme %>/src/js/scripts.min.js': [
                       .....
                        '<%= project.dev %>node_modules/bootstrap/js/dist/dom/manipulator.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/util/index.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/util/component-functions.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/util/config.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/base-component.js',
....
                    ],
                    '<%= project.out %><%= project.theme %>/src/js/scripts.jq.min.js': [
                    ........
                        '<%= project.dev %>node_modules/bootstrap/js/dist/dom/manipulator.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/util/index.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/util/component-functions.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/util/config.js',
                        '<%= project.dev %>node_modules/bootstrap/js/dist/base-component.js',
.....
                    ],`

this solved my problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions