Skip to content

Managed item controllers.js isn't a directory or doesn't contain a package.json #897

Closed
@Crayzo

Description

@Crayzo

Hello,

I have a problem when I install Encore on a new Symfony project in 5.2.2

symfony new project --full
composer req encore
npm install --force
npm run dev

When I build, I have this message:

 DONE  Compiled successfully in 1407ms                                                                                                                                                              2:10:06 PM

 I  5 files written to public/build
Entrypoint app [big] 382 KiB = runtime.js 15 KiB vendors-node_modules_symfony_autoimport_js-node_modules_symfony_stimulus-bridge_dist_index_js-369183.js 355 KiB app.css 390 bytes app.js 12.3 KiB

LOG from webpack.FileSystemInfo
<w> Managed item /Users/Romain/Code/Project/node_modules/@symfony/autoimport.js isn't a directory or doesn't contain a package.json
<w> Managed item /Users/Romain/Code/Project/node_modules/@symfony/controllers.js isn't a directory or doesn't contain a package.json
+ 13 hidden lines

But on a running project I don't have this problem, this problem is only present when I create a new Symfony project.
It's normal?

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