Cannot find module "./../monitor/stats.json"

clarkdo
8.3k
clarkdo
commented a year ago

Hi @pi0 , when I try this module, there is a exception app.js:28 Uncaught Error: Cannot find module "./../monitor/stats.json"

I think the frontend will get data through getstats and no need to load file, the error confused me. Did I miss anything or it is a error at bundle app.js building?

0
clarkdo
8.3k
clarkdo
commented a year ago

oh, I saw the code, will take a look for further study

0
clarkdo
8.3k
clarkdo
commented a year ago

I think NODE_ENV should not be development when @pi0/webpackmonitor building, so that module will go into here, I'm not clear your customization, so could you please rebuild the package with production?

0
pi0
21.4k
pi0
commented a year ago

Thanks dear @clarkdo for the report. I'm not sure what was wrong but rebuilding with yarn build and releaed new version and seems working. Please upgrade to "@nuxtjs/webpackmonitor": "^0.0.3" and reopen if problem still exists…

0
clarkdo
8.3k
clarkdo
commented a year ago

@pi0 It works, thanks.

0
Informations
QuestionUnresolved
#c3 - Created a year ago