Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

alias is not defined #64

Closed
gonzofish opened this issue Mar 8, 2022 · 1 comment · Fixed by #65
Closed

alias is not defined #64

gonzofish opened this issue Mar 8, 2022 · 1 comment · Fixed by #65
Labels

Comments

@gonzofish
Copy link

gonzofish commented Mar 8, 2022

When the change was made for v2.0.0 of this library, alias was renamed to aliasWebpack. However the previous alias call was not changed and the library is failing.

EDIT: forgot to attach the error I get:

/Users/gonzofish/Projects/my-project/node_modules/react-app-alias/src/index.js:175
    return alias(pluginOptions.alias||configPaths())(webpackConfig)
    ^

ReferenceError: alias is not defined
    at Object.overrideWebpackConfig (/Users/gonzofish/Projects/my-project/node_modules/react-app-alias/src/index.js:175:5)
    at overrideWebpack (/Users/gonzofish/Projects/my-project/node_modules/@craco/craco/lib/features/plugins.js:42:40)
    at /Users/gonzofish/Projects/my-project/node_modules/@craco/craco/lib/features/plugins.js:64:29
    at Array.forEach (<anonymous>)
    at applyWebpackConfigPlugins (/Users/gonzofish/Projects/my-project/node_modules/@craco/craco/lib/features/plugins.js:63:29)
    at mergeWebpackConfig (/Users/gonzofish/Projects/my-project/node_modules/@craco/craco/lib/features/webpack/merge-webpack-config.js:110:30)
    at overrideWebpackDev (/Users/gonzofish/Projects/my-project/node_modules/@craco/craco/lib/features/webpack/override.js:11:36)
    at /Users/gonzofish/Projects/my-project/node_modules/@craco/craco/scripts/start.js:27:5
@oklas oklas closed this as completed in #65 Mar 8, 2022
oklas added a commit that referenced this issue Mar 8, 2022
fix(react-app-alias): one rename was missing to stage #64
@oklas
Copy link
Owner

oklas commented Mar 8, 2022

🎉 This issue has been resolved in version react-app-alias-v2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@oklas oklas added the released label Mar 8, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants