frctl / fractal

A tool to help you build and document website component libraries and design systems.

Home Page:https://fractal.build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeprecationWarning: Invalid 'main' field in package.json

frankl7800 opened this issue · comments

DeprecationWarning: Invalid 'main' field in '...\node_modules@frctl\fractal\node_modules@frctl\handlebars\package.json' of 'src/index.js'.

Steps to reproduce the issue

  1. Start Styleguide by grunt-Task
  2. When finished:
Running "concurrent:tasks" (concurrent) task
    Running "watch" task
    Waiting...
    Running "fractal-serve:all" (fractal-serve) task
    (node:16124) [DEP0128] DeprecationWarning: Invalid 'main' field in 'E:\GIT\...\node_modules\@frctl\fractal\node_modules\@frctl\handlebars\package.json' of 'src/index.js'. Please either fix that or report it to the module author
    (Use `node --trace-deprecation ...` to show where the warning was created)
    Fractal server is now running at http://localhost:3000

Reproduces how often:
100%

Context

  • Fractal version: 1.5.11
  • Node version: 16.13.0
  • OS: Windows 10

Hey @frankl7800! This should've been fixed with #1060 - released with @frctl/handlebars v1.2.11 and @frctl/fractal v1.5.9. Can you maybe investigate a bit further, where the old handlebars adapter is coming from? Or try updating it to the latest manually with npm update @frctl/handlebars?

My handlebars adapter is version 1.2.13 and comming from yarn: https://yarnpkg.com/package/@frctl/handlebars

yarn list --pattern "frctl"

yarn list v1.22.15
├─ @frctl/core@0.3.3
├─ @frctl/fractal@1.5.11
│  └─ @frctl/mandelbrot@1.9.4
├─ @frctl/handlebars@1.2.13
├─ @frctl/mandelbrot@1.7.0
└─ @frctl/web@0.1.10

If I look at my own current project where I also have 1.2.13 installed, inspect the actually installed package, it seems to be fine:
image

The code in this repo is also correct for the handlebars adapter. I'll close the issue, but feel free to ping me if you find out something new (e.g. we've been looking at the wrong package or whatever)