After I installed the nameof I started receiving the following warnings:
WARNING Compiled with 2 warnings 12:27:01
warning in ./node_modules/babel-plugin-macros/dist/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
warning in ./node_modules/import-fresh/index.js
Critical dependency: the request of a dependency is an expression
my package.json:
"devDependencies": {
.... // All other packages
// Added now to make nameof work
"@types/ts-nameof": "^4.2.1",
"babel-plugin-macros": "^2.8.0",
"babel-plugin-ts-nameof": "^4.2.1",
"module": "^1.2.5",
"ts-nameof.macro": "^4.2.2"
},
my babel.config.js:
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
// Added this line to make nameof work
plugins: ["babel-plugin-ts-nameof"],
};
Is there anything wrong with my setup? By the way, there is no setup manual guys. Could you please add some quick steps as an example.
After I installed the
nameof
I started receiving the following warnings:my package.json:
my babel.config.js:
Is there anything wrong with my setup? By the way, there is no setup manual guys. Could you please add some quick steps as an example.
Thanks.