This repository was archived by the owner on Jan 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 59
Cannot read properties of undefined (reading 'type')Β #355
Copy link
Copy link
Open
Description
Hi.
First of all, great project !
Unfortunately I'm not able to make it work,
Running hegel or npx hegel via CLI into the folder of my application, I have the error Cannot read properties of undefined (reading 'type')
This is my package.json
{
"version": "1.0.0",
"name": "my-website",
"private": true,
"engines": {
"node": ">=17"
},
"scripts": {
"eslint": "gulp --gulpfile gulpFile.js run-eslint"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@hegel/cli": "^0.0.45",
"@babel/preset-flow": "^7.16.7",
"eslint": "^8.4.1",
"fs": "^0.0.2",
"glob": "^7.2.0",
"gulp": "^4.0.2",
"gulp-clean": "^0.4.0",
"gulp-cli": "^1.4.0",
"gulp-eslint": "^6.0.0",
"sass": "^1.44.0"
}
}
This is my .hegelrc file
include:
- ./wwwroot/js/**/*.js
exclude:
- ./node_modules/**
types:
- ./node_modules/@types
I'm using Babel only for ESLint, and I'm trying to use Hegel without involving Babel or other dependencies (it's not very clear to me if Babel is mandatory to use Hegel or not), but just to be sure, I created this .babelrc file
{
"presets": [["@babel/preset-flow", { "all": true }]]
}
Can you please give me a suggestion ?
Thank you very much in advance.
Metadata
Metadata
Assignees
Labels
No labels