Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Bug: Cannot test beta build due to config error #156

Closed
1 of 2 tasks
bdougie opened this issue Jun 2, 2023 · 4 comments · Fixed by #158
Closed
1 of 2 tasks

Bug: Cannot test beta build due to config error #156

bdougie opened this issue Jun 2, 2023 · 4 comments · Fixed by #158
Labels

Comments

@bdougie
Copy link
Member

bdougie commented Jun 2, 2023

Describe the bug

When trying to leverage the build locally for testing, there is an error message stating config is not defined.

Screen Shot 2023-06-02 at 4 30 40 PM

Steps to reproduce

  1. run npm run build
  2. drag dist folder to chrome://extensions
  3. Log into extension and see the error.

Browsers

Chrome

Additional context (Is this in dev or production?)

beta

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@bdougie bdougie added the 🐛 bug Something isn't working label Jun 2, 2023
@bdougie bdougie changed the title Bug: Bug: Cannot test beta build due to config error Jun 2, 2023
@Anush008
Copy link
Member

Anush008 commented Jun 3, 2023

I believe the error is originating from

const { version } = config;

ai/vite.config.ts

Lines 9 to 11 in dde39f1

define: {
'config.version': JSON.stringify(process.env.npm_package_version),
}

@bdougie
Copy link
Member Author

bdougie commented Jun 3, 2023

The PR fixes the issue. I am now seeing this error #157 locally when testing. Going to #158 now.

@github-actions
Copy link

github-actions bot commented Jun 3, 2023

🎉 This issue has been resolved in version 1.3.1-beta.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Jun 3, 2023

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants