question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect expo-config(MODULE_NOT_FOUND) error

See original GitHub issue

Description of the bug

The extension is reporting expo-config(MODULE_NOT_FOUND) for all plugins that I specify in app.json

To Reproduce

  1. expo init
  2. Create app.plugin.js file with contents: module.exports = (config) => config;
  3. In app.json add expo.plugins property: "plugins": ["./app.plugin"],
  4. Notice error:
    Cannot find module '/Users/joshua/code/TestExpoApp/app.plugin.js' 
    expo-config(MODULE_NOT_FOUND)
    

Expected behavior

No error should appear

Actual behavior

Error appeared

Additional context

Name: Expo Tools
Id: bycedric.vscode-expo
Description: Expo tools for vscode
Version: 0.7.3
Publisher: Cedric van Putten
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=byCedric.vscode-expo

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
byCedriccommented, Nov 10, 2021

Fixed by #71, hopefully we can release it this week!

1reaction
mbaker3commented, Aug 23, 2021

While the error no longer shows in 0.7.1 the extension also doesn’t seem to validate plugin paths at all.

0.7.2 seems to work as expected and correctly validates the plugin/module path.

Note: This issue also affects the Preview config and Preview modifier commands which don’t correctly display the built time changes from the plugins. The plugin changes do work for actual builds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do you understand that any Expo CLI issues opened ... - GitHub
Module not found : Can't resolve '../../Utilities/Platform' #16227 ... Ok, I was finally able to solve my own instance of this problem:.
Read more >
failed to resolve plugin for module "sentry-expo" - You.com
I've sentry-expo in my package.json and in my app.config.js I have plugins: ["sentry-expo"], I've also tried adding "cache": {"disabled": true} to the ...
Read more >
node.js - Expo Export Erro Processing Bundle Patterns with ...
Hello I'm facing a expo export problem after Node. ... /expo-cli/node_modules/@expo/config-plugins/src/android/Manifest.ts:164:8) at ...
Read more >
Config Plugins - Expo Documentation
Config plugins are a system for extending the Expo config and customizing the ... error handling asserts if the mod chain was corrupted...
Read more >
UNPKG - @expo/webpack-config
'source-map' : false;\n }\n if (development) {\n return ... gives some necessary context to module not found errors, such as\n // the requesting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found