SpeciesFileGroup / matrix_row_coder

Code phylogenetic/descriptive matrices by row. In Vue.js
1 stars 0 forks source link

Cannot find module '/.mockRequests'... #38

Open nafyahmed opened 6 years ago

nafyahmed commented 6 years ago

When I compile the code and try to test the server by running "grunt serve-mock", I get the following error:

Error: Cannot find module './mockRequests/observation_matrices-5-row?otu_id=1.json' from 'C:\Users\Nafy\Desktop\matrix_row_coder-master\src\request' Warning: Error running grunt-browserify. Use --force to continue.

Aborted due to warnings.

I tried to change the relative path and change the way the routing finds the appropriate directories, but no luck.

I recreated my issue in a video here: https://www.screencast.com/t/cacuyAw2Cq

jlpereira commented 6 years ago

Hi @nafyahmed !

Thanks so much for provide a video of this. After watch it, i saw you forget one step. You need to copy or change the file name "props.js.dist" to "props.js":

cp src/props.js.dist src/props.js

I hope this work for you, let me know that.

Cheers!

jlpereira commented 6 years ago

Testing the mockup server on Windows and i found your problem, is related with the characters of the name file. Windows doesn't support characters like "?" on the file names.

You should be able to use the live version without any problems

jlpereira commented 6 years ago

@nafyahmed a temporary fix to get the mockup server works on Windows Replace /src/request/MockRequest.js for this one.

I hope this works for you

Cheers!

MockRequest.zip