transistorsoft / capacitor-background-fetch

Periodic callbacks in the background for both IOS and Android
78 stars 9 forks source link

Failed to parse source map #14

Closed pauldev20 closed 3 months ago

pauldev20 commented 1 year ago

Your Environment

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌 [success] Android looking great! 👌

* Plugin config provided to `BackgroundFetch.configure`: N/A

## Expected Behavior
<!--- Tell us what should happen -->
Should not show any warnings/errors about parsing the source map.

## Actual Behavior
<!--- Tell us what happens instead -->
Throwing multiple warnings:

[react-scripts] WARNING in ./node_modules/@transistorsoft/capacitor-background-fetch/dist/esm/definitions.js [react-scripts] Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): [react-scripts] Failed to parse source map from '.../node_modules/@transistorsoft/capacitor-background-fetch/src/definitions.ts' file: Error: ENOENT: no such file or directory, open '.../node_modules/@transistorsoft/capacitor-background-fetch/src/definitions.ts' [react-scripts] WARNING in ./node_modules/@transistorsoft/capacitor-background-fetch/dist/esm/index.js [react-scripts] Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): [react-scripts] Failed to parse source map from '.../node_modules/@transistorsoft/capacitor-background-fetch/src/index.ts' file: Error: ENOENT: no such file or directory, open '.../node_modules/@transistorsoft/capacitor-background-fetch/src/index.ts' [react-scripts] webpack compiled with 2 warnings



## Steps to Reproduce
<!--- reproduce this issue; include code to reproduce, if relevant -->
1. `npm i @transistorsoft/capacitor-background-fetch`
2. `npx cap sync`
3. `ionic capacitor run ios -l --external --open`

## Context
<!--- What were you trying to do? -->
Run the app in development mode on iOS
christocracy commented 1 year ago

Try building the /example app in this repo.

pauldev20 commented 1 year ago

The /example app doesn't throw these warnings. I used React and not Angular, so the issue seams to be a problem with React.

christocracy commented 1 year ago

I don't think React has anything to do with it.

What's with these paths with triple-dot paths? : '.../node_modules

I suggest you generate a simple HellowWorld app and attempt to reproduce this. I suspect you won't be able to.

pauldev20 commented 1 year ago

I just added those triple dots to not need to paste my complete path here, because it would have been really long. So the .../node_modules folder is just the node_modules folder inside the root folder of my project.

So I tried creating a fresh Ionic React app and installing the plugin via: npm install --save @transistorsoft/capacitor-background-fetch and I am still receiving the same warnings as soon as using the plugin.

christocracy commented 1 year ago

Did you follow the directions of the /example README?

You need to manually compile the plugin's typescript when cloning this repo to run the /example.

pauldev20 commented 1 year ago

Yes, I did follow all the steps, but sadly it didn't solve the problem.

mattsbennett commented 1 year ago

We have these warnings in an ionic react app as well

christocracy commented 1 year ago

Create for me a simple HelloWorld app which reproduces this.

mattsbennett commented 1 year ago

@christocracy https://github.com/mattsbennett/ionic-react-test.git

aidanm1999 commented 6 months ago

Hi guys, this issue persists. Any thoughts @christocracy?

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.