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: Plugins references files from src-Folder in SourceMaps #755

Closed
ausminternet opened this issue Jan 7, 2022 · 1 comment · Fixed by #760
Closed

bug: Plugins references files from src-Folder in SourceMaps #755

ausminternet opened this issue Jan 7, 2022 · 1 comment · Fixed by #760

Comments

@ausminternet
Copy link

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.3.4
  @capacitor/core: 3.3.4
  @capacitor/android: 3.3.4
  @capacitor/ios: 3.3.4

Installed Dependencies:

  @capacitor/android: not installed
  @capacitor/core: 3.3.3
  @capacitor/cli: 3.3.3
  @capacitor/ios: 3.3.3

[success] iOS looking great! 👌

Platform(s)

All, it is a build problem not a runtime problem.

Current Behavior

I have a standard create-react-app setup. I added the above plugins and get the following warnings at build time:

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/haptics/src/definitions.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/haptics/src/definitions.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/haptics/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/haptics/src/index.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/haptics/src/web.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/haptics/src/web.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/status-bar/src/definitions.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/status-bar/src/definitions.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/status-bar/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/status-bar/src/index.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/storage/src/definitions.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/storage/src/definitions.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/storage/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/storage/src/index.ts'

Failed to parse source map from '/Users/jah/workspace/glist/node_modules/@capacitor/storage/src/web.ts' file: Error: ENOENT: no such file or directory, open '/Users/jah/workspace/glist/node_modules/@capacitor/storage/src/web.ts'

Expected Behavior

The build completes without warnings.

Code Reproduction

Create a new create-react-app, add a plugin and hit build.

Other Technical Details

npm --version output:
8.1.0
node --version output:
v16.13.0

Additional Context

Those warnings will prevent my production build from being successful. As a workaround I added this env-variable:

GENERATE_SOURCEMAP=false

@jcesarmobile jcesarmobile transferred this issue from ionic-team/capacitor Jan 11, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 30, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant