Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Critical dependency: the request of a dependency is an expression #27

@MiloCasagrande

Description

@MiloCasagrande

After upgrading from 1.3.3 to 1.5.0, using marko-loader with webpack, I get the following error:

Critical dependency: the request of a dependency is an expression

I can reproduce the same issue using the marko-webpack repository after upgrading all dependencies in there.

This is the output taken from the marko-webpack repository when running npm start:

WARNING in ./src/components/app-tabs/index.marko 1:0-18
Critical dependency: the request of a dependency is an expression
 @ ./src/components/app/index.marko
 @ ./src/pages/home/client.js

When loading the app from a brwoser, the app itself is "broken": no CSS and no interactivity. This is the error I get from the browser console:

Uncaught Error: Cannot find module 'undefined'

Dependencies:

  • marko 4.15.2
  • marko-loader 1.5.0
  • webpack 4.25.9
  • webpack-cli 3.2.3

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